Re: NSTimer firedate randomly changes
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