Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
Re: Crashing on all relevant exceptions
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Crashing on all relevant exceptions
Subject
:
Re: Crashing on all relevant exceptions
From: Aaron Jacobs <
email@hidden
>
Date: Mon, 7 Aug 2006 19:53:35 -0700
I should also note that I took a look at the solutions proposed by Matt and Chris, so that it doesn't seem like I just ignored them.
I'm not sure how I missed NSAssertionHandler, and that seems perfect to take care of assertions. But I'm hoping to find something more general that will take care of all exceptions.
As for the link Matt posted to the list: that seems like it will work to be able to intercept every exception raised, but it has the same problem as overriding -run in that all I can do is exit or re-raise the exception; I can't cause the application to crash.
Basically what it comes down to is that I want to prevent NSApplication from using its own exception handler. Is there anyone here who has done this, or are there any Apple engineers who can tell me if it's possible? If not, I suppose I will just have to intercept all exceptions, print a stack trace to the console using the method described on cocoadev.com in the StackTraces article, and then exit the application. I guess that wouldn't be so bad combined with some smart crash reporting code that could harvest the data from the console. The biggest disadvantage it has is that the user never gets the "this app crashed" window they would expect.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References:
>
Crashing on all relevant exceptions
(From: Aaron Jacobs <email@hidden>)
>
Re: Crashing on all relevant exceptions
(From: Nick Zitzmann <email@hidden>)
>
Re: Crashing on all relevant exceptions
(From: Aaron Jacobs <email@hidden>)
>
Re: Crashing on all relevant exceptions
(From: Nick Zitzmann <email@hidden>)
>
Re: Crashing on all relevant exceptions
(From: Aaron Jacobs <email@hidden>)
>
Re: Crashing on all relevant exceptions
(From: Shaun Wexler <email@hidden>)
>
Re: Crashing on all relevant exceptions
(From: Aaron Jacobs <email@hidden>)
Prev by Date:
Re: Crashing on all relevant exceptions
Next by Date:
Re: Crashing on all relevant exceptions
Previous by thread:
Re: Crashing on all relevant exceptions
Next by thread:
Re: Crashing on all relevant exceptions
Index(es):
Date
Thread