Windows has the SetUnhandledExceptionFilter API, which allows applications to handle crashes. Is there something similar for the Mac platform? I did not find anything like it on developer.apple.com ...
Thanks!
The equivalent of Cocoa / Foundation is the NSSetUncaughtExceptionHandler () function . You should also check the "Manage program response to exceptions" in the Cocoa Exception Handling Guide. It will explain some default changes you can make your application take specific, predefined actions when an NSApplication object wants to complete with an exception.
Check out Smart Crash Reports and how it works. Be warned that this is a really evil hack.
Source: https://habr.com/ru/post/1708784/More articles:Install MyLabel.Text in Repeater HeaderTemplate - asp.netImage resizing and performance - performanceGotcha / surprises in C # .net 3.5 - c #What is the VBA syntax for accessing hidden tables in MS-Access? - ms-accessHow to bind Html.DropDownList without ViewData (strongly typed view) - drop-down-menuClear and redraw using cappuccino (Objective-J) - cappuccinoExcel controls in VSTO - c #byte [] to convert an array to a byte array does not work fine in java - javaPartition sort programming problem - c ++Алгоритм распознавания движений мыши - language-agnosticAll Articles