Is there a way to catch the global βcrashβ of applications like objc_exception_throw, EXC_ARITHMETIC, etc. in code? I need this because I want to do something before the application is killed by the system.
You can set a handler for any uncaught exception with the NSSetUncaughtExceptionHandler .
NSSetUncaughtExceptionHandler
Related documents from Apple are here: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/Exceptions/Concepts/UncaughtExceptions.html#//apple_ref/doc/uid/20000056-BAJDDGGD
Source: https://habr.com/ru/post/1309656/More articles:Sending HTML to the body of an email message - javaIs there a standard equivalent to the timeGetTime () library? - c ++How to call bash script from php transfer parameters - phpHTML input for changing value - htmlWriting to Socket outputStream without closing - javaStarting with Datamapper, Association Question - ruby ββ| fooobar.comHow to resize UINavigationController in iPhone? - iphoneWhat does it mean that a language is "interpreted"? - compiler-constructionphp: exception handling in exception handlers? - phpHow can I create a curve editor that works well with the WPF model? - c #All Articles