Re: how to pause
Re: how to pause
- Subject: Re: how to pause
- From: John Randolph <email@hidden>
- Date: Mon, 8 Sep 2003 19:16:56 -0700
On Sep 8, 2003, at 6:43 PM, Gilbert Mackall wrote:
I would like to have a routine pause for some number of seconds. I
have looked at NSTimer and it does not appear to fit what I need. Is
there some other class or routine I could use? Our am I reading the
NSTimer doc's incorrectly?
It's not clear what you mean by "pause". If you want the program to
stop everything for a certain amount of time, look at the UNIX sleep()
function.
If you want something to happen after a given amount of time, you can
send any object a -performSelector:afterDelay:cancelPrevious: message.
NSTimer is a little more general-purpose than that, providing periodic
events for things like animation, as well as one-shot events.
-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 pause (From: Gilbert Mackall <email@hidden>) |