Platforms to show: All Mac Windows Linux Cross-Platform

NSWindowMBS constants

Edge Constants

Constant Value Description
NSMaxXEdge 2 the maximum X edge. Typically right side.
NSMaxYEdge 3 The maximum Y edge. Topically the top edge of a window.
NSMinXEdge 0 the minimum X edge. Typically left side.
NSMinYEdge 1 Minimum Y. As coordinates are upside down in the Cocoa world, this is the bottom edge of a window.

Titlebar Separator Styles

Constant Value Description
NSTitlebarSeparatorStyleAutomatic 0 The titlebar separator style is determined by the window’s configuration.
NSTitlebarSeparatorStyleLine 2 The titlebar separator is a line.
NSTitlebarSeparatorStyleNone 1 There’s no titlebar separator.
NSTitlebarSeparatorStyleShadow 3 The titlebar separator is a shadow.

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Animation Behavior Constants.

Constant Value Description
NSWindowAnimationBehaviorAlertPanel 5 Default behavior for alert window.
NSWindowAnimationBehaviorDefault 0 let AppKit infer animation behavior for this window
NSWindowAnimationBehaviorDocumentWindow 3 Default behavior for document window.
NSWindowAnimationBehaviorNone 2 suppress inferred animations (don't animate)
NSWindowAnimationBehaviorUtilityWindow 4 Default behavior for utility window.

Tabbing Modes

Constant Value Description
NSWindowTabbingModeAutomatic 0 The system automatically prefers to tab this window when appropriate.
NSWindowTabbingModeDisallowed 2 The window explicitly should not prefer to tab when shown
NSWindowTabbingModePreferred 1 The window explicitly should prefer to tab when shown.

Title Visibility

Constant Value Description
NSWindowTitleHidden 1 The always hidden mode hides the title and moves the toolbar up into the area previously occupied by the title.
NSWindowTitleHiddenWhenActive 2 This mode hides the title when the window is active, and shows it when inactive. It does not adjust toolbars.
NSWindowTitleVisible 0 The default mode has a normal window title and titlebar buttons.

Toolbar Styles

Constant Value Description
NSWindowToolbarStyleAutomatic 0 The system displays the toolbar based on the window’s given configuration.
NSWindowToolbarStyleExpanded 1 The toolbar appears below the window title.
NSWindowToolbarStylePreference 2 The toolbar appears below the window title and items in the toolbar are centered and have increased margins.
NSWindowToolbarStyleUnified 3 The toolbar, when visible, appears inline with the window title.
NSWindowToolbarStyleUnifiedCompact 4 The toolbar appears inline and with the window title and with smaller margins when visible.

User Tabbing Preferences

Constant Value Description
NSWindowUserTabbingPreferenceAlways 1
NSWindowUserTabbingPreferenceInFullScreen 2
NSWindowUserTabbingPreferenceManual 0

💬 Ask a question or report a problem
The biggest plugin in space...