Re: NSTimer not firing if date changed in Sys Prefs
Re: NSTimer not firing if date changed in Sys Prefs
- Subject: Re: NSTimer not firing if date changed in Sys Prefs
- From: "Sean McBride" <email@hidden>
- Date: Thu, 31 Mar 2005 09:10:43 -0500
Ricky Sharp (email@hidden) on 2005-03-31 07:30 said:
>>So say I run the above code at 22:00, then change the clock to 23:59, my
>>timer does not fire a minute later.
>>
>>Am I expecting too much? :)
>
>I wouldn't say so. While it may be a very rare case that the user
>changes their time, it may happen twice a year automatically depending on
>if the time will auto-adjust for daylight savings.
Well I've filed a bug. At the very least I think the documentation
should be clearer. For initWithFireDate: it says "Initializes a new
NSTimer that, when added to a run loop, will fire at 'date'...". But it
doesn't quite do that. :) It probably computes the interval from now to
'date' then calls timerWithTimeInterval.
Take Care!
--
"How much harm does a company have to do before we question its right to
exist?" -- Paul Hawken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden