Re: How to Delay, Wait, Pause...
Re: How to Delay, Wait, Pause...
- Subject: Re: How to Delay, Wait, Pause...
- From: "stephen joseph butler" <email@hidden>
- Date: Sun, 25 May 2008 02:31:19 -0500
On Sun, May 25, 2008 at 1:45 AM, Steve Steinitz
<email@hidden> wrote:
> Hello,
>
> This is hard to google for because they are such common words:
>
> how do I delay, wait, pause for a tenth of a second?
Hmm... someone correct me if I'm wrong, but I believe the run loop is
re-enterable. So you could call [[NSRunLoop currentRunLoop]
runUntilDate:smallDate]; from your function. This would also let
NSArrayController update its selection; calling the sleep functions
won't unless you're on another thread.
Just make sure that your code is either re-enterable, or guards
against such cases.
_______________________________________________
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