• 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: Adding 30 minutes to an NSDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Adding 30 minutes to an NSDate
      • From: Nicko van Someren <email@hidden>
References: 
 >Adding 30 minutes to an NSDate (From: Uli Kusterer <email@hidden>)
 >Re: Adding 30 minutes to an NSDate (From: j o a r <email@hidden>)
 >Re: Adding 30 minutes to an NSDate (From: Nicko van Someren <email@hidden>)
 >Re: Adding 30 minutes to an NSDate (From: j o a r <email@hidden>)
 >Re: Adding 30 minutes to an NSDate (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: Adding 30 minutes to an NSDate
  • Next by Date: Re: Adding 30 minutes to an NSDate
  • Previous by thread: Re: Adding 30 minutes to an NSDate
  • Next by thread: Re: Adding 30 minutes to an NSDate
  • Index(es):
    • Date
    • Thread