• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes (From: Jens Alfke <email@hidden>)

  • Prev by Date: iOS4: remote / headset events and the remote control display
  • Next by Date: Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
  • Previous by thread: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
  • Next by thread: Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
  • Index(es):
    • Date
    • Thread