Re: performSelectorOnMainThread and exceptions
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