I have something like:
- (NSString *)unixSinglePathCommandWithReturn:(NSString *)command
{
NSPipe *newPipe = [NSPipe pipe];
NSFileHandle *readHandle = [newPi
Hey, Kukosk. There’s a comment on CocoaDev about NSLog()
issues when running an NSTask. The fix is to set a pipe for stdin
before launching the task:
[task setStandardInput:[NSPipe pipe]];
If you’re relying on NSLog()
only to check whether the task has run, this might fix your problem. Alternatively, you could try to present output
in your GUI instead of using NSLog()
.