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
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 mails | Author | Date |
|---|---|---|
| Eddy Hatcher | Mar 24, 12:19 | |
| John C. Randolph | Mar 24, 12:45 | |
| Tony Becker | Mar 24, 13:35 | |
| Kyle Sluder | Mar 24, 15:50 | |
| Mike | Mar 25, 06:19 | |
| Randall Meadows | Mar 25, 22:07 |






Cocoa mail archive

