Re: performSelectorOnMainThread fails second time through
Re: performSelectorOnMainThread fails second time through
- Subject: Re: performSelectorOnMainThread fails second time through
- From: Dave Keck <email@hidden>
- Date: Wed, 8 Dec 2010 16:32:57 -0500
> Hey, this sounds very familiar!
> http://lists.apple.com/archives/cocoa-dev/2010/Sep/msg00426.html
That seems like a distinct issue. The problem Gideon is seeing is that
[NSThread mainThread] holds a (private) reference to a run loop that
isn't the main thread's run loop. Since -performSelectorOnMainThread
relies on that reference, calls to -performSelectorOnMainThread fail.
Both issues seem to involve bad timing in the use of certain Cocoa
APIs; it seems there's something about the order and timing of
Gideon's project that's causing NSThread to think that some
CFRunLoopRef is the main run loop when it's not.
_______________________________________________
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