Problems with NSTask in OS X 10.6 Snow Leopard

Posted by kubi on Stack Overflow See other posts from Stack Overflow or by kubi
Published on 2009-08-30T15:22:07Z Indexed on 2010/05/15 23:40 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

Has anyone else seen or heard of any issues with NSTask in 10.6?

This code worked fine yesterday, and is not working today.

NSTask *task = [converter task];
[task waitUntilExit];
NSLog(@"Task did complete");

The task does what it's supposed to do (I checked the output and it's fine), but the program will wait indefinitely at the waitUntilExit method. I have a few unit tests that use similar code, they all had passed previously, but as of yesterday, they are no longer working.

© Stack Overflow or respective owner

Related posts about snow-leopard

Related posts about cocoa