Re: How to Delay, Wait, Pause...
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