On Sat, 19 Dec 2009 13:27:01 +0200, Oleg Krupnov
said:
>Anyway, I have just found that the following code works:
>
>NSExceptionHandler *handler = [NSExceptionHandler defaultExceptionHandler];
> [handler setExceptionHandlingMask:NSLogAndHandleEveryExceptionMask];
> [handler setDelegate:self];
>
>T
Thanks Ken,
By "uncaught" I mean an exception for which I do not set any handlers
in my own code, and let it bubble up until it is handled by some
default mechanism, be it NSApp default handler, NSExceptionHandler,
NSSetUncaughtExceptionHandler or whatever. AFAIU, in Cocoa apps, it's
NSApp that in
On Dec 19, 2009, at 4:56 AM, Oleg Krupnov wrote:
On Fri, Dec 18, 2009 at 1:48 AM, Ken Thomases
wrote:
On Dec 17, 2009, at 8:41 AM, Oleg Krupnov wrote:
On Leopard, I used to override [NSApp reportException:] method to
track all uncaught exceptions that occur in my app.
However, I have just
Yes, I tried it but it does not seem to have any effect.
I checked the [[NSExceptionHandler defaultExceptionHandler]
exceptionHandlingMask], and it's 0. I tried to set it to various
combinations, but nothing changes in the behavior of the app.
I also tried NSSetUncaughtExceptionHandler, but it do
On Dec 17, 2009, at 8:41 AM, Oleg Krupnov wrote:
> On Leopard, I used to override [NSApp reportException:] method to
> track all uncaught exceptions that occur in my app.
>
> However, I have just discovered that on Snow Leopard, this method
> never gets called. Instead, the application handles th
On 17 груд. 2009, at 16:44, Oleg Krupnov wrote:
> On Leopard, I used to override [NSApp reportException:] method to
> track all uncaught exceptions that occur in my app.
>
> ...
>
> How to work around this and receive the uncaught exceptions somehow?
>
> Thanks!
You can take a look at this
On Leopard, I used to override [NSApp reportException:] method to
track all uncaught exceptions that occur in my app.
However, I have just discovered that on Snow Leopard, this method
never gets called. Instead, the application handles the exception
somewhere inside and I only get this message in