Re: delay function
Re: delay function
- Subject: Re: delay function
- From: Ricky Sharp <email@hidden>
- Date: Tue, 7 Dec 2004 19:47:58 -0600
On Dec 7, 2004, at 7:39 PM, Gregory Weston wrote:
On Dec 7, 2004, at 8:22 PM, John Spicer wrote:
is there a simple way to insert a delay of seconds in obj-c/cocoa?
in the old system there was a Delay() function.
is there something like it in the new?
A couple of people responded with suggestions of how to do this. I'm
curious why, though, along with a caution that it's almost certainly
something you don't want to be doing in your main thread.
I currently employ the use of NSThread's sleepUntilDate: in a
performClick: override in my custom NSControl. I basically highlight
the control, delay, then unhighlight it.
___________________________________________________________
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