Re: creating multiple NSTimers
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