Re: performSelectorOnMainThread fails second time through
Re: performSelectorOnMainThread fails second time through
- Subject: Re: performSelectorOnMainThread fails second time through
- From: Gideon King <email@hidden>
- Date: Wed, 8 Dec 2010 21:43:18 +1000
0x114400a60 ?== 0x1029006e0
Assertion fails. The two are completely different as per previous results.
FYI, I do not create any run loops explicitly in my application, and can't think of anything I am doing which would create one implicitly.
Regards
Gideon
On 08/12/2010, at 8:55 PM, Dave Keck wrote:
>> You are correct. They are two different things:
>
> Alright, does the following assertion fail when placed before the
> -performSelectorOnMainThread line? (Ignore the warning - using private
> APIs.)
>
> id a = (id)[[[NSThread mainThread] runLoop] getCFRunLoop];
> id b = (id)CFRunLoopGetMain();
> NSLog(@"%p ?== %p", a, b);
> assert(a == b);
>
> [anObject performSelectorOnMainThread: ...]
>
> Please respond with the output of the NSLog line too.
>
> The assertion succeeds in my own test app. I'm guessing it
> fails/crashes in yours.
_______________________________________________
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