Skip navigation.
 
mlRe: Perform selector on thread
FROM : Randall Meadows
DATE : Tue Mar 25 22:07:41 2008

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

Related mailsAuthorDate
mlPerform selector on thread Eddy Hatcher Mar 24, 12:19
mlRe: Perform selector on thread John C. Randolph Mar 24, 12:45
mlRe: Perform selector on thread Tony Becker Mar 24, 13:35
mlRe: Perform selector on thread Kyle Sluder Mar 24, 15:50
mlRe: Perform selector on thread Mike Mar 25, 06:19
mlRe: Perform selector on thread Randall Meadows Mar 25, 22:07