• 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 14:17:29 -0800

On Nov 17, 2010, at 2:12 PM, Kyle Sluder wrote:
> On Wed, Nov 17, 2010 at 2:07 PM, Dave DeLong <email@hidden> wrote:
> Here's what I got from that documentation:
>
> - An NSTimer is a run loop source.
>
> Ah, I think this is where my brain went all funny, because the NSRunLoop documentation mentions multiple times that "A timer is not considered an input source." http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSRunLoop_Class/Reference/Reference.html
>
> I suspect what is meant is that it's not considered an input source for the purpose of deciding when to stop looping and return from the -run… methods.

A timer is a "source" but not an "input source". "The Run Loop Sequence of Events" says that both timers and port-based input sources are able to wake a sleeping run loop.


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

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