• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: performSelectorOnMainThread fails second time through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: performSelectorOnMainThread fails second time through
      • From: Charles Srstka <email@hidden>
References: 
 >performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)

  • Prev by Date: performSelectorOnMainThread fails second time through
  • Next by Date: Re: performSelectorOnMainThread fails second time through
  • Previous by thread: performSelectorOnMainThread fails second time through
  • Next by thread: Re: performSelectorOnMainThread fails second time through
  • Index(es):
    • Date
    • Thread