Re: Can't trap uncaught exceptions on Snow Leopard
Re: Can't trap uncaught exceptions on Snow Leopard
- Subject: Re: Can't trap uncaught exceptions on Snow Leopard
- From: Matt Neuburg <email@hidden>
- Date: Sun, 20 Dec 2009 08:32:28 -0800
- Thread-topic: Can't trap uncaught exceptions on Snow Leopard
On Sat, 19 Dec 2009 13:27:01 +0200, Oleg Krupnov <email@hidden>
said:
>Anyway, I have just found that the following code works:
>
>NSExceptionHandler *handler = [NSExceptionHandler defaultExceptionHandler];
> [handler setExceptionHandlingMask:NSLogAndHandleEveryExceptionMask];
> [handler setDelegate:self];
>
>The delegate method DOES get called:
>
>- (BOOL)exceptionHandler:(NSExceptionHandler *)sender
>shouldHandleException:(NSException *)exception mask:(unsigned
>int)aMask
>{ [NSApp reportException:exception];
> return YES;
But this has nothing to do with Snow Leopard. I've got projects going back
many years that use that code. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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