• 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: Dave DeLong <email@hidden>
  • Date: Wed, 17 Nov 2010 15:07:16 -0700

Here's what I got from that documentation:

- An NSTimer is a run loop source.

- NSRunLoop monitors its sources for events, provided that the run loop is running in the mode that the source is scheduled in.

- If the run loop is processing an event from a different source and a timer fires, then the run loop will process the timer event on a subsequent iteration.

- If the run loop is not running at all (like, you created an NSThread and didn't -run the run loop, or you are creating a foundation tool and didn't -run the run loop), then the timer events will not be processed, because the run loop is not processing *any* events.

- If the run loop is not operating in the mode that the timer is scheduled in, then the timer events will not be processed until the run loop begins running in that mode again.

Seemed like pretty straight-forward documentation to me.

Dave

On Nov 17, 2010, at 2:54 PM, Kyle Sluder wrote:

> Okay, that's two people who have corrected me on this now. What am I
> misinterpreting about this documentation:
>
> http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html
_______________________________________________

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>)
 >Re: NSTimer firedate randomly changes (From: Greg Parker <email@hidden>)
 >Re: NSTimer firedate randomly changes (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTimer firedate randomly changes
  • Next by Date: Re: Running JavaScript in iOS WebView.
  • Previous by thread: Re: NSTimer firedate randomly changes
  • Next by thread: Re: NSTimer firedate randomly changes
  • Index(es):
    • Date
    • Thread