Using performSelector:withObject:afterDelay: to call a delegate method?
Using performSelector:withObject:afterDelay: to call a delegate method?
- Subject: Using performSelector:withObject:afterDelay: to call a delegate method?
- From: Helen Cooper <email@hidden>
- Date: Wed, 30 Dec 2009 09:08:20 -0800 (PST)
I want to be able to employ a delegate method after a delay. So what I have done, which works fine, is create a method in my class that calls the delegate method, and then I use performSelector:withObject:afterDelay: to call the second method:
[self performSelector:@selector(doSomething00) withObject:NULL afterDelay:4.0];
-(void)doSomething00{
[someDelegate doSomething];
}
I am wondering though, if there might be a way to use performSelector:withObject:afterDelay: (or some similar method) to call the delegate method directly?
thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden