Skip navigation.
 
mlRe: NSTask waitForDataInBackgroundAndNotify and waitUntilExit
FROM : Shawn Erickson
DATE : Mon May 12 23:04:22 2008

Your placement of waitUntilExit is blocking the runloop which needs to
be running to service the background notifications you requested. If
you want async behavior then you cannot wait on the task (at least not
in the way you are currently attempting).

Review the following code example...

http://developer.apple.com/samplecode/Moriarity/listing5.html

-Shawn

Related mailsAuthorDate
mlNSTask waitForDataInBackgroundAndNotify and waitUntilExit Torsten Curdt May 12, 22:57
mlRe: NSTask waitForDataInBackgroundAndNotify and waitUntilExit Shawn Erickson May 12, 23:04
mlRe: NSTask waitForDataInBackgroundAndNotify and waitUntilExit Torsten Curdt May 13, 02:55