NSApplication.PresentationOptions
Constants that control the presentation of the app, typically for fullscreen apps such as games or kiosks.
Declaration
struct PresentationOptionsOverview
There are restrictions on the combination of presentation options that can be set simultaneously:
autoHideDock and hideDock are mutually exclusive: You may specify one or the other, but not both.
autoHideMenuBar and hideMenuBar are mutually exclusive: You may specify one or the other, but not both.
If you specify hideMenuBar, it must be accompanied by hideDock.
If you specify autoHideMenuBar, it must be accompanied by either hideDock or autoHideDock.
If you specify any of disableProcessSwitching, disableForceQuit, disableSessionTermination, or disableMenuBarTransparency, it must be accompanied by either hideDock or autoHideDock.
autoHideToolbar may be used only when both fullScreen and autoHideMenuBar are also set.
When NSApplication receives a parameter value that does not conform to these requirements, it raises an invalidArgumentException.
Topics
Presentation Options
autoHideDockhideDockautoHideMenuBarhideMenuBardisableAppleMenudisableProcessSwitchingdisableForceQuitdisableSessionTerminationdisableHideApplicationdisableMenuBarTransparencyfullScreenautoHideToolbardisableCursorLocationAssistance