• 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 problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelectorOnMainThread problem


  • Subject: Re: performSelectorOnMainThread problem
  • From: Erg Consultant <email@hidden>
  • Date: Thu, 28 May 2009 16:53:49 -0700 (PDT)

Either your main thread doesn't implement the selector requested, or else it's an issue with the runloop never processing the request. If you have code that alters the runloop or modifies its input sources, check that code first.

Erg




________________________________
From: Ben Einstein <email@hidden>
To: email@hidden
Sent: Thursday, May 28, 2009 9:11:42 AM
Subject: performSelectorOnMainThread problem

Does anyone know of any issue that would cause performSelectorOnMainThread to not actually perform the selector but not report any kind of error? I use threads very often and have never had a problem like this, but when I call:

[aControllerObject performSelectorOnMainThread:@selector(doSomething:) withObject:anObject waitUntilDone:NO];

absolutely NOTHING happens. No log messages, doesn't pause on break points, and certainly no exceptions. But if I do this:

[aControllerObject performSelector:@selector(doSomething:) withObject:anObject];

it works every time. I'm completely baffled. Has anyone seen anything like this before?

Thanks,
Ben
_______________________________________________

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




_______________________________________________

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 problem
      • From: Kyle Sluder <email@hidden>
References: 
 >performSelectorOnMainThread problem (From: Ben Einstein <email@hidden>)

  • Prev by Date: Re: -init never gets sent
  • Next by Date: Performance, Efficiency - Coding practice
  • Previous by thread: Re: performSelectorOnMainThread problem
  • Next by thread: Re: performSelectorOnMainThread problem
  • Index(es):
    • Date
    • Thread