Re: delay function
Re: delay function
- Subject: Re: delay function
- From: Ricky Sharp <email@hidden>
- Date: Tue, 7 Dec 2004 21:25:46 -0600
On Dec 7, 2004, at 9:18 PM, Thomas Davie wrote:
On 8 Dec 2004, at 02:43, Ricky Sharp wrote:
I current have it set to 50 ms which would be just over 6 ticks. I
have yet to fine-tune this. At 8-ticks it seems a bit too high when
comparing it to what the built-in widgets do (e.g. NSButton).
A quick note - you're much better off using an NSTimer to fire an
event when you need to unhighlight your control – that way only the
threads that depend on that control block and the rest of your
computation continues – much better for multitasking.
That's a good tip. I'll definitely revisit this code later to ensure
it's a good citizen. I will especially need it in an upcoming title
which will be using threads to run the AI portion of a game.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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