Problem with NSUncaughtExceptionHandler
Problem with NSUncaughtExceptionHandler
- Subject: Problem with NSUncaughtExceptionHandler
- From: Michael Monscheuer <email@hidden>
- Date: Thu, 13 Nov 2003 13:57:49 +0100
I am working on an error tracker which collects all errors in order of
appearance.
If first error and its description has been added to internal list of
error tracker instance, error tracker raises an exception.
I planned to catch the exeption by using my own
NSUncaughtExceptionHandler set by NSSetUncaughtExceptionHandler(). As
this special error exception is never catched by default it should be
finally sent to Uncaught Exception Handler, which then does the complete
output of all errors.
And here's the problem: With a document based application my Uncaught
Exception Handler never gets called.
NSGetUncaughtExceptionHandler() returns my function correctly, but it
never gets called though.
This does not happen within a *non* document based context. It seems
that somehow application kit always calls its own private Handler.
Any experiences according this problem?
Any idea how I can catch the uncaught exceptions or insert a method at
the end of an event loop to output the stored error path?
Thanks for reading,
MiMo
--
=======================================================
And refashioning the fashioned
lest it stiffen into iron
is work of endless vital activity.
[Goethe]
mailto:email@hidden
mailto:email@hidden
All about CALAMUS DTP suite:
http://www.calamus.net
=======================================================
_______________________________________________
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.