Re: performSelectorOnMainThread
Re: performSelectorOnMainThread
- Subject: Re: performSelectorOnMainThread
- From: j o a r <email@hidden>
- Date: Wed, 26 Oct 2005 17:08:46 +0200
On 26 okt 2005, at 17.02, Luc Vandal wrote:
I have a question regarding performSelectorOnMainThread. If I do:
[myObject performSelectorOnMainThread:@selector(myFunction:)
withObject:nil waitUntilDone:YES], does that mean that myFunction
from myObject will be executed?
Yes.
If so, I tried that and the app will just hang on
performSelectorOnMainThread. My function will never get called. If
I set waitUntilDone:NO, then my function will eventually get
called. Is it a problem with my secondary thread?
The "performOnMainThread" methods depends on that your main thread is
idle from time to time, allowing the run loop to process events from
run loop sources.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden