Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to program a delay



On Saturday, December 28, 2002, at 07:19 PM, Simone Manganelli wrote:

I was wondering if there's a command to insert a delay, so that the program waits a specified amount of time before executing the next command. Any ideas?

If you want to do this kind of thing with Cocoa, see the NSTimer and NSThread classes. NSThread has a -sleepUntilDate: method.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to program a delay (From: Simone Manganelli <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.