Re: perform ... afterDelay?
Re: perform ... afterDelay?
- Subject: Re: perform ... afterDelay?
- From: Marco Scheurer <email@hidden>
- Date: Wed, 4 Jan 2006 20:53:03 +0100
On Jan 4, 2006, at 20:39, goessly wrote:
Simplisticly put: (how) can I use that like this:
[self myCounter++ afterDelay:0.04]
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate
dateWithTimeIntervalSinceNow:0.04]];
This is a very quick and elegant solution, thank you!
Yes, if used in the code of your original post, but again not what
you need, given the details you added since then. An NSTimer would
indeed be better. You don't really want to wait 0.04 seconds, you
want to have a method called 25 times per second.
Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden