• 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: Ken Thomases <email@hidden>
  • Date: Sun, 25 May 2008 04:49:39 -0500

On May 25, 2008, at 4:22 AM, Steve Steinitz wrote:

   NSDate *future = [NSDate dateWithTimeIntervalSinceNow: 0.1];
   [NSThread sleepUntilDate:future];

Just for posterity, there's also the simpler, more efficient [NSThread sleepForTimeInterval:0.1]. The documentation says it's only available in 10.5 and later, but the 10.5 release notes say that it was always available but only recently published in the headers.


http://developer.apple.com/releasenotes/Cocoa/Foundation.html

Cheers,
Ken
_______________________________________________

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


  • Follow-Ups:
    • Re: How to Delay, Wait, Pause...
      • From: Steve Steinitz <email@hidden>
References: 
 >Re: How to Delay, Wait, Pause... (From: Steve Steinitz <email@hidden>)

  • Prev by Date: Re: File's Owner
  • Next by Date: Problem configuring NSToolbarItem in IB
  • Previous by thread: Re: How to Delay, Wait, Pause...
  • Next by thread: Re: How to Delay, Wait, Pause...
  • Index(es):
    • Date
    • Thread