In my OSX Application I am using a sheet to allow the user to log in. If the user first starts the application the sheet is displayed and the user has to enter his information.
Now as long as the sheet is open the user is not able to quit the application (unless he’s force-quitting it).
Since the login is vital i don’t want to provide a cancel button.
Just set the
NSWindow’spreventsApplicationTerminationWhenModalproperty accordingly: