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

Re: performSelectorOnMainThread and exceptions


  • Subject: Re: performSelectorOnMainThread and exceptions
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 27 Oct 2008 18:51:44 -0500

On Oct 27, 2008, at 4:05 PM, email@hidden wrote:

if i call -[anObject performSelectorOnMainThread:aSelector withObject:nil waitUntilDone:NO] and then later throw an exception (of my own), which i catch, the deferred execution of aSelector never happens. note that the performSelectonOnMainThread, and the throw and catch are all in the same run of the run loop and are all in the main thread.

is this a bug (seems like it to me) or proper/expected behavior. if i didn't catch the exception, i could understand this, but as i said, i am catching it. if this is proper behavior, can anyone offer me an explanation as to why?

Sounds like a bug to me. File it with Apple <http:// bugreport.apple.com>.


Out of curiosity, since you're only trying to defer a message and everything's on the main thread, does it still happen with [anObject performSelector:aSelector withObject:nil afterDelay:0]?

Regards,
Ken

_______________________________________________

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 and exceptions
      • From: "email@hidden" <email@hidden>
    • Re: performSelectorOnMainThread and exceptions
      • From: "email@hidden" <email@hidden>
References: 
 >performSelectorOnMainThread and exceptions (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Looking for the big hammer
  • Next by Date: Re: performSelectorOnMainThread and exceptions
  • Previous by thread: performSelectorOnMainThread and exceptions
  • Next by thread: Re: performSelectorOnMainThread and exceptions
  • Index(es):
    • Date
    • Thread