• 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: NSTimer firedate randomly changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer firedate randomly changes


  • Subject: Re: NSTimer firedate randomly changes
  • From: Greg Parker <email@hidden>
  • Date: Wed, 17 Nov 2010 13:54:00 -0800

On Nov 17, 2010, at 1:35 PM, Kyle Sluder wrote:
> That's not how timers work. They only fire if something wakes the runloop
> after their time has expired. Usually this is an event.

Not true. A timer may fire some time after its fire date for any number of reasons, but "no event to wake the run loop" is not one of them. If the run loop is idle (and in the right run loop mode, and not stopped, etc), then a timer's expiration is itself sufficient to wake the run loop and call the timer's code. No other event is necessary.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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

  • Follow-Ups:
    • Re: NSTimer firedate randomly changes
      • From: Kyle Sluder <email@hidden>
References: 
 >NSTimer firedate randomly changes (From: Lorenzo Thurman <email@hidden>)
 >Re: NSTimer firedate randomly changes (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTimer firedate randomly changes
  • Next by Date: Re: NSTimer firedate randomly changes
  • Previous by thread: Re: NSTimer firedate randomly changes
  • Next by thread: Re: NSTimer firedate randomly changes
  • Index(es):
    • Date
    • Thread