In my Mac application I am supporting full screen by changing the system resolution of the device. And I'm resetting it to the old resolution again if the user switches from full screen to windowed mode or if the user closes the app and I have to handle the issue of quitting.
1. Is there an API or callback that tells the application User Press CMD + Opt + ASC (Force dropping)
2. Is there any other way to handle this?
I know that NSAP is an option to quit the force ([NSApplication setPresentationOptions: NSApplicationPresentationDisableForceQuit]) but instead of disabling it, I want to handle the incident of quitting.
The general consensus is that leaving the force sends a SIGKILL ("mango Consent "as I do not know there is no apple document, but this is a logical answer). A
SIGKILL can not be caught so that you can not directly clean one option is to run a supportive app, which monitors and cleans the main app, supports the main app on the normal exit Can end up See also.
Comments
Post a Comment