• 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
performSelectorOnMainThread fails second time through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

performSelectorOnMainThread fails second time through


  • Subject: performSelectorOnMainThread fails second time through
  • From: Gideon King <email@hidden>
  • Date: Wed, 8 Dec 2010 06:05:46 +1000

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?

Thanks

Gideon






_______________________________________________

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: Gideon King <email@hidden>
  • Prev by Date: Re: OS X Desktop
  • Next by Date: Re: performSelectorOnMainThread fails second time through
  • Previous by thread: Re: Interprocess Communication (IPC) : Which "technology" to use?
  • Next by thread: Re: performSelectorOnMainThread fails second time through
  • Index(es):
    • Date
    • Thread