• 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: creating multiple NSTimers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating multiple NSTimers


  • Subject: Re: creating multiple NSTimers
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 29 Sep 2011 15:18:10 -0700

On Sep 29, 2011, at 3:06 PM, Tom Hohensee wrote:

> Yes.  What I have worked on is using an array of timers fired sequentially.  Each firing of the timer sets up the next one in the array.  Each new addition to the array requires invalidating of the active timer and reordering of the array according to times.   But i have run into problems when two or more timers are set to fire at the same time.

What you’re describing sounds like the work that the runloop performs internally to manage multiple active timers. Why not let the runloop do the work for you? Just start up all the timers in parallel and wait for them to fire.

—Jens_______________________________________________

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

References: 
 >creating multiple NSTimers (From: Tom Hohensee <email@hidden>)
 >Re: creating multiple NSTimers (From: David Duncan <email@hidden>)
 >Re: creating multiple NSTimers (From: Tom Hohensee <email@hidden>)

  • Prev by Date: Re: creating multiple NSTimers
  • Next by Date: Re: creating multiple NSTimers
  • Previous by thread: Re: creating multiple NSTimers
  • Next by thread: Re: creating multiple NSTimers
  • Index(es):
    • Date
    • Thread