RE: Making failed NSAsserts crash an app
RE: Making failed NSAsserts crash an app
- Subject: RE: Making failed NSAsserts crash an app
- From: Squ Aire <email@hidden>
- Date: Thu, 27 Aug 2009 16:46:59 +0000
- Importance: Normal
Thank you both for the info so far.
However, do you have any idea how to accomplish what I actually want to do? Is my original idea of forcing asserts to crash maybe bad, which is why noone even thought of suggesting a way to do it?
How do people normally do it? Do they just make a crash reporter framework catch an exception like Rob suggested? What crash reporter framework would you recommend?
Just some general info on this and related things, for a newbie who wants hand out his simple app for some other people to use, would be appreciated.
>> You could raise exceptions instead of generating assertion failures.
>> Exceptions are caught by several of the crash reporting frameworks.
>> You could probably map the NSAssert macros to exception-generation
>> code for your beta builds.
>
>
> The NSAssert macros raise exceptions by default in debug builds.
--.
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx_______________________________________________
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