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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]