10.13+ launch wasn't.

This commit is contained in:
Kelvin Sherlock 2021-05-31 10:39:24 -04:00
parent 7b67522156
commit 5ffc85f9fc
1 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,13 @@ static NSMutableSet *LogWindows;
} }
} }
-(void)appendAttributedString: (NSAttributedString *)string {
if ([string length]) {
[[_textView textStorage] appendAttributedString: string];
}
}
-(NSError *)runTask: (NSTask *)task { -(NSError *)runTask: (NSTask *)task {
@ -109,8 +116,8 @@ static NSMutableSet *LogWindows;
[task launchAndReturnError: &error]; [task launchAndReturnError: &error];
if (error) { if (error) {
NSLog(@"NSTask error. Path = %s error = %@", path, error); NSLog(@"NSTask error. Path = %s error = %@", path, error);
return error;
} }
return error;
} else { } else {
path = [[task launchPath] fileSystemRepresentation]; path = [[task launchPath] fileSystemRepresentation];
wd = [[task currentDirectoryPath] fileSystemRepresentation]; wd = [[task currentDirectoryPath] fileSystemRepresentation];