Re: Can't perform selectors after delay in a secondary thread?
Re: Can't perform selectors after delay in a secondary thread?
- Subject: Re: Can't perform selectors after delay in a secondary thread?
- From: Clark Cox <email@hidden>
- Date: Tue, 1 Sep 2009 22:25:06 -0700
On Tue, Sep 1, 2009 at 10:16 PM, Laurent
Daudelin<email@hidden> wrote:
> I've searched everywhere and cannot find the answer to this question. I have
> a method that uses NSThread to detach another method in a different thread.
> This method will then schedule another method but only after a certain delay
> so I use performSelector:withObject:afterDelay: but that second method is
> never called. What am I missing?
Do you have an NSRunLoop running in your thread?
performSelector:withObject:afterDelay: schedules the method call on
the current thread's runloop; if it isn't running, then the method
will never be called.
--
Clark S. Cox III
email@hidden
_______________________________________________
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