• 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: "email@hidden" <email@hidden>
  • Date: Mon, 27 Oct 2008 16:57:26 -0700

At 6:51 PM -0500 10/27/08, Ken Thomases wrote:
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>.

will do/


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]?

i didn't try that. however, i've since re-architected somewhat and can't easily test in my app. i may try that before filing a bug report.


ken



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


References: 
 >performSelectorOnMainThread and exceptions (From: "email@hidden" <email@hidden>)
 >Re: performSelectorOnMainThread and exceptions (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: performSelectorOnMainThread and exceptions
  • Next by Date: Re: Not so long filenames
  • Previous by thread: Re: performSelectorOnMainThread and exceptions
  • Next by thread: Re: performSelectorOnMainThread and exceptions
  • Index(es):
    • Date
    • Thread