Re: catching uncaught exceptions
Re: catching uncaught exceptions
- Subject: Re: catching uncaught exceptions
- From: Prachi Gauriar <email@hidden>
- Date: Mon, 9 Feb 2004 21:23:49 -0600
On Feb 9, 2004, at 12:51 PM, matt neuburg wrote:
I want to override Cocoa's policy of failing silently with a note to
the
Console when there is an exception, so I have created an NSApplication
subclass and implemented reportException: to call NSRunAlertPanel and
tell
the user.
But it isn't working. When I deliberately generate an out-of-bounds
range
error in my code, it winds up in the Console log and there is no alert
panel:
Why not use NSSetUncaughtExceptionHandler(), and use it to call
NSApplication's reportException:?
I haven't tested this, but it seems like it should work.
-Prachi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.