On Tue, Sep 1, 2009 at 10:16 PM, Laurent
Daudelin<[email protected]> 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 protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to