Re: perform ... afterDelay?
Re: perform ... afterDelay?
- Subject: Re: perform ... afterDelay?
- From: "I. Savant" <email@hidden>
- Date: Wed, 4 Jan 2006 09:11:17 -0500
Well, you could try creating a method like this:
- (void)incrementCounter
{
myCounter++;
}
Then call it with -performSelector:withObject:afterDelay: ...
--
I.S.
On Jan 4, 2006, at 9:06 AM, goessly wrote:
I need to increment a counter after a short wait, like this:
while(myCounter < maxCounter)
{
do Stuff;
wait 0.04 seconds;
increment myCounter;
}
In this lists' archives I found the hint to use the following;
instead of having to bother with an NSTimers' overhead:
[self performSelector:@selector(someSelector) withObject:nil
afterDelay:0.04]
Simplisticly put: (how) can I use that like this:
[self myCounter++ afterDelay:0.04]
kind regards,
goessly
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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