Re: Adding 30 minutes to an NSDate
Re: Adding 30 minutes to an NSDate
- Subject: Re: Adding 30 minutes to an NSDate
- From: j o a r <email@hidden>
- Date: Wed, 20 Jul 2005 11:17:41 +0200
On 20 jul 2005, at 11.11, Nicko van Someren wrote:
Agreed, but firing at Now + constant will inevitably drift even if
you're not sleeping, so I can see why Uli wanted to add the
constant to the last firing time rather than just wait for an hour
from now. As I recall the docs even comment on this and point out
that repeating timers fire at an offset from the scheduled time
rather than the actual time, to avoid this problem.
That doesn't agree with what Andy found in the docs, but if you're
worried about that you can just avoid using a repeating timer and re-
schedule it every time you've fired, correcting for any possible
drift as you do so.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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