Windows has SetUnhandledExceptionFilter API to enable applications to handle crashes. Is there something similar for the Mac platform? I didn't find anything like it on developer.apple.com...
Thanks!
Windows has SetUnhandledExceptionFilter API to enable applications to handle crashes. Is there something similar for the Mac platform? I didn't find anything like it on developer.apple.com...
Thanks!
Take a look at Smart Crash Reports and how it works. Be warned that it's a truly evil hack.
The Cocoa/Foundation equivalent is the NSSetUncaughtExceptionHandler() function. You should also check out the Controlling a Program's Response to an Exception section of the Exception Handling Guide for Cocoa. It will explain some defaults changes you can make to have your application do specific, predefined things when the NSApplication object wants to terminate with an exception.