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: Kyle Sluder <email@hidden>
- Date: Thu, 5 Aug 2010 10:25:21 -0700
On Thu, Aug 5, 2010 at 10:10 AM, Jens Alfke <email@hidden> wrote:
> What I’m guessing is that running a delayed block does not count as an “input source”. That’s kind of frustrating, because it makes the runloop’s behavior highly dependent on internal details of framework classes — in this case, how was I to know that NSTask used a block and not an input source to handle this? And presumably that means the behavior has changed in 10.6, which would explain some weird NSTask related problems I’ve seen over the past year.
It's not just blocks—old-fashioned delayed performs don't cause the
runloop to exit either. Here's a code snippet that exhibits the same
behavior: http://gist.github.com/510055#file_delayed_perform.m
--Kyle Sluder
_______________________________________________
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