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 06:19:24 +1000
Another data point on this: if I use waitUntilDone:NO, it doesn't even work the first time through.
Responds to selector still returns YES. There are no error messages.
On 08/12/2010, at 6:05 AM, Gideon King wrote:
> Hi, I'm trying to debug a really odd issue. I have a method that I run in a separate thread, and right at the end of the method, I call
>
> [anObject performSelectorOnMainThread:@selector(myMethod:) withObject:someData waitUntilDone:YES];
>
> This works fine the first time I run it. The second and subsequent times I try it, the message never arrives at its destination. I have checked and the destination object is exactly the same, it still has a retain count of 1, and if I ask respondsToSelector: it says yes.
>
> Any ideas what else I should look at to try to track down the cause of this?
_______________________________________________
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