Re: performSelectorOnMainThread problem
Re: performSelectorOnMainThread problem
- Subject: Re: performSelectorOnMainThread problem
- From: Corbin Dunn <email@hidden>
- Date: Thu, 28 May 2009 10:03:51 -0700
On May 28, 2009, at 9:46 AM, Ben Einstein wrote:
On May 28, 2009, at 12:36 PM, Jeff Johnson wrote:
Three general possibilities:
(1) aControllerObject is nil.
Definitely not the problem because it works when calling
performSelector: without the mainThread part.
(2) The main run loop is not running for some reason.
The main run loop is waiting to hear back from the completion of the
worker thread, so this isn't the problem.
(3) The main run loop is not running in one of NSRunLoopCommonModes.
I would guess this is the most likely option as well, but NSRunLoop
says mainRunLoop is kCFRunLoopDefaultMode, which is correct, right?
For kicks, toss in modes:[NSArray
arrayWithObject:NSRunLoopCommonModes]]
And/or give us a bt of your main thread when the message fails.
Chances are, it hasn't failed, it just hasn't processed it yet.
corbin
_______________________________________________
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