Re: NSTimers
Re: NSTimers
- Subject: Re: NSTimers
- From: Ricky Sharp <email@hidden>
- Date: Wed, 18 Jan 2006 07:35:09 -0600
On Wednesday, January 18, 2006, at 04:26AM, Robert Dell <email@hidden> wrote:
>When using multiple timers, which ones have priority, the first ones initialized or the last ones?
>The problem I'm having is I have a timer set up for 1000 per second and one for 1 per second and one for 1 per minute. I want the 1 per second and 1 per minute to fire before the 1000 per second timer.
First, be careful when using NSTimer for high-resolution needs. You'll often get drifting.
In terms of priorities, I'm not aware of any. However, it sounds like for your needs, you could just use a single timer that would fire at the highest resolution you need. On certain boundaries, you could excecute the code in the order you need.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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
References: | |
| >NSTimers (From: Robert Dell <email@hidden>) |