• 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: Lots of NSTimers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lots of NSTimers?


  • Subject: Re: Lots of NSTimers?
  • From: Karl Goiser <email@hidden>
  • Date: Sun, 5 Feb 2006 11:51:44 +1100

Hello,

Last May (!!), I asked a question about a design choice: whether to use potentially hundreds of NSTimers, or to use a self-implemented queue driven by a single NSTimer. I said I'd get back to the list with my resolution, this message (better late than never!!).

There was some debate at the time about weighing up duplicating Apple's own code (debugged, tested and verified) versus potential inefficiencies of using NSTimers (and bugs in writing your own code).


I was thinking about this recently and recalled that there was some discussion that NSTimers had to be adjusted when the machine awoke from sleep. Given this, a queue with a single timer appears to be the best solution...



Thanks everybody for a great list!

Karl

_______________________________________________
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


  • Prev by Date: Starting in Cocoa and a bit lost !
  • Next by Date: Re: x86 programs on linux?
  • Previous by thread: Re: Starting in Cocoa and a bit lost !
  • Next by thread: ScreenSaverEngine loading wrong view!
  • Index(es):
    • Date
    • Thread