I block the screen with my own window in my app. and I need to prevent the emergence of this alert which called by Cmd+Shift+Q system hotkey.
Asked
Active
Viewed 83 times
1
-
Why are you sandboxing your application? I rather doubt you could put it into the App Store. – Peter Hosey Mar 30 '13 at 13:56
-
my app is something like this https://itunes.apple.com/us/app/keycard/id578513438?mt%3D12 – mischa Mar 31 '13 at 20:24
1 Answers
1
What you're looking for is called kiosk mode. There are several things you may want to block, including “session termination” (the logout commands, among other things), application switching and Exposé, and the Apple menu; that document describes how you can block whichever items you want to block.

Peter Hosey
- 95,783
- 15
- 211
- 370
-
NSApplicationPresentationDisableAppleMenu - that's I'm looking for! Thanks! – mischa Apr 01 '13 at 06:03
-
@myke: Don't assume that DisableAppleMenu will completely prevent logout. There are other ways to log out of the system that don't involve the Apple menu. – Peter Hosey Apr 01 '13 at 07:40
-
can you tell me about other ways to turn of my full screen app with these options? NSApplicationPresentationOptions options = NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar | NSApplicationPresentationDisableAppleMenu | NSApplicationPresentationDisableForceQuit | NSApplicationPresentationDisableProcessSwitching | NSApplicationPresentationDisableSessionTermination | NSApplicationPresentationDisableHideApplication; – mischa Apr 01 '13 at 09:00
-
@myke: I don't understand what you mean by “turn of my full screen app”. – Peter Hosey Apr 01 '13 at 09:39
-
when I block screen with my full screen window I use these presentation options for NSApp, there are only NSTextField for password input on the screen. the correct password must be the only one way to unlock my Mac (except "Power" button ;)) – mischa Apr 01 '13 at 13:14