Re: Perform selector on thread
Re: Perform selector on thread
- Subject: Re: Perform selector on thread
- From: Randall Meadows <email@hidden>
- Date: Tue, 25 Mar 2008 15:07:41 -0600
On Mar 24, 2008, at 11:19 PM, Mike wrote:
And that begs another question:
How do I do what you mentioned but using the
performSelector:withObject:afterDelay: variant?
That method executes the given selector in the current thread; so, if
you need something to run on the main thread after a delay, just chain
them together. Invoke performSelectorOnMainThread, and in the method
you provide to that invoke performSelector:withOjbect:afterDelay,
which will then run *that* method in the *main* thread, after your
designated delay.
randy
_______________________________________________
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