I\'m working on a macOS Cocoa app that needs to fully cancel a command to log out, restart, or shut down when there are unsaved changes to its data.
I can get halfway