Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
- Subject: Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
- From: Ken Thomases <email@hidden>
- Date: Thu, 5 Aug 2010 13:10:10 -0500
On Aug 5, 2010, at 12:10 PM, Jens Alfke wrote:
> The wait code looks like:
> while (_busy) {
> if (![[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate: [NSDate distantFuture]])
> break;
> }
Since you're waiting on an NSTask to finish, is there a reason you're not using -[NSTask waitUntilExit]?
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden