• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to Delay, Wait, Pause...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to Delay, Wait, Pause... (From: Steve Steinitz <email@hidden>)

  • Prev by Date: Re: Spaces causes sheet to go behind parent window
  • Next by Date: Re: Scope in an interface?
  • Previous by thread: Re: How to Delay, Wait, Pause...
  • Next by thread: Re: How to Delay, Wait, Pause...
  • Index(es):
    • Date
    • Thread