mirror of https://github.com/ksherlock/ample.git
10.13+ launch wasn't.
This commit is contained in:
parent
7b67522156
commit
5ffc85f9fc
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue