Platforms to show: All Mac Windows Linux Cross-Platform

NSWindowMBS constants

Constants

Constant Value Description
NSBorderlessWindowMask 0 One of the constants you can use to specify the style when creating a window. The window displays none of the usual peripheral elements. Useful only for display or caching purposes.
NSClosableWindowMask 2 One of the constants you can use to specify the style when creating a window. The window displays a close button.
NSDirectSelection 0 One of the constants specify the direction a window is currently using to change the key view using keyViewSelectionDirection. The window isn't traversing the key view loop.
NSFullScreenWindowMask 16384 One of the constants you can use to specify the style when creating a window. When set, the window will appear full screen. This mask is automatically toggled when toggleFullScreen: is called.
NSFullSizeContentViewWindowMask 32768 One of the constants you can use to specify the style when creating a window. If set, the contentView will consume the full size of the window; it can be combined with other window style masks, but is only respected for windows with a titlebar. more
NSMiniaturizableWindowMask 4 One of the constants you can use to specify the style when creating a window. The window displays a minimize button.
NSResizableWindowMask 8 One of the constants you can use to specify the style when creating a window. The window displays a resize control.
NSSelectingNext 1 One of the constants specify the direction a window is currently using to change the key view using keyViewSelectionDirection. The window is proceeding to the next valid key view.
NSSelectingPrevious 2 One of the constants specify the direction a window is currently using to change the key view using keyViewSelectionDirection. The window is proceeding to the previous valid key view.
NSTexturedBackgroundWindowMask 256 One of the constants you can use to specify the style when creating a window. The window displays with a metal-textured background. Additionally, the window may be moved by clicking and dragging anywhere in the window background. A bordered window with this mask gets rounded bottom corners.
NSTitledWindowMask 1 One of the constants you can use to specify the style when creating a window. The window displays a title bar.
NSUnifiedTitleAndToolbarWindowMask 4096 One of the constants you can use to specify the style when creating a window.
NSUnscaledWindowMask 2048 One of the constants you can use to specify the style when creating a window.
NSWindowBackingLocationDefault 0 One of the constant to specify the window backing store location. Determined by the operating system.
Available in Mac OS X v10.5 and later.
NSWindowBackingLocationMainMemory 2 One of the constant to specify the window backing store location. Physical memory.
Available in Mac OS X v10.5 and later.
NSWindowBackingLocationVideoMemory 1 One of the constant to specify the window backing store location. Video memory.
Available in Mac OS X v10.5 and later.
NSWindowCloseButton 0 One constants providing a way to access standard title bar buttons. The close button.
NSWindowCollectionBehaviorCanJoinAllSpaces 1 One of the constants for window collection behaviors related to Exposé and Spaces. The window appears in all spaces. The menu bar behaves this way.
Available in Mac OS X v10.5 and later.
NSWindowCollectionBehaviorDefault 0 One of the constants for window collection behaviors related to Exposé and Spaces. The window can be associated to one space at a time.
Available in Mac OS X v10.5 and later.
NSWindowCollectionBehaviorFullScreenAuxiliary 256 One of the constants for window collection behaviors. Windows with this collection behavior can be shown with the fullscreen window.
NSWindowCollectionBehaviorFullScreenPrimary 128 One of the constants for window collection behaviors. The frontmost window with this collection behavior will be the fullscreen window.
NSWindowCollectionBehaviorIgnoresCycle 64 One of the constants for window collection behaviors related to Exposé and Spaces. The window is not part of the window cycle for use with the Cycle Through Windows Window menu item.
Available in Mac OS X v10.6 and later.
NSWindowCollectionBehaviorManaged 4 One of the constants for window collection behaviors related to Exposé and Spaces. The window participates in Spaces and Exposé. This is the default behavior if windowLevel is equal to NSNormalWindowLevel.
Available in Mac OS X v10.6 and later.
NSWindowCollectionBehaviorMoveToActiveSpace 2 One of the constants for window collection behaviors related to Exposé and Spaces. Making the window active does not cause a space switch; the window switches to the active space.
Available in Mac OS X v10.5 and later.
NSWindowCollectionBehaviorParticipatesInCycle 32 One of the constants for window collection behaviors related to Exposé and Spaces. The window participates in the window cycle for use with the Cycle Through Windows Window menu item.
Available in Mac OS X v10.6 and later.
NSWindowCollectionBehaviorStationary 16 One of the constants for window collection behaviors related to Exposé and Spaces. The window is unaffected by Exposé; it stays visible and stationary, like the desktop window.
Available in Mac OS X v10.6 and later.
NSWindowCollectionBehaviorTransient 8 One of the constants for window collection behaviors related to Exposé and Spaces. The window floats in Spaces and is hidden by Exposé. This is the default behavior if windowLevel is not equal to NSNormalWindowLevel.
Available in Mac OS X v10.6 and later.
NSWindowDocumentIconButton 4 One constants providing a way to access standard title bar buttons. The document icon button.
NSWindowDocumentVersionsButton 6 One constants providing a way to access standard title bar buttons.
NSWindowFullScreenButton 7 One constants providing a way to access standard title bar buttons.
NSWindowMiniaturizeButton 1 One constants providing a way to access standard title bar buttons. The minimize button.
NSWindowNumberListAllApplications 1 One of the constants used for options that may be passed to the windowNumbersWithOptions: method. The window numbers of windows visible on any space and belonging to any application. more
NSWindowNumberListAllSpaces 16 One of the constants used for options that may be passed to the windowNumbersWithOptions: method. The window numbers of windows visible on any space and belonging to the calling application. more
NSWindowSharingNone 0 One of the following constants and the related data type represent the access levels other processes can have to a window's content. The window's contents cannot be read by another process.
Available in Mac OS X v10.5 and later.
NSWindowSharingReadOnly 1 One of the following constants and the related data type represent the access levels other processes can have to a window's content. The window's contents can be read but not modified by another process.
Available in Mac OS X v10.5 and later.
NSWindowSharingReadWrite 2 One of the following constants and the related data type represent the access levels other processes can have to a window's content. The window's contents can be read and modified by another process.
Available in Mac OS X v10.5 and later.
NSWindowToolbarButton 3 One constants providing a way to access standard title bar buttons. The toolbar button.
NSWindowZoomButton 2 One constants providing a way to access standard title bar buttons. The zoom button.

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.
Example
NSWindowToolbarStyleExpanded 1 The toolbar appears below the window title.
Example
NSWindowToolbarStylePreference 2 The toolbar appears below the window title and items in the toolbar are centered and have increased margins.
Example
NSWindowToolbarStyleUnified 3 The toolbar, when visible, appears inline with the window title.
Example
NSWindowToolbarStyleUnifiedCompact 4 The toolbar appears inline and with the window title and with smaller margins when visible.
Example

User Tabbing Preferences

Constant Value Description
NSWindowUserTabbingPreferenceAlways 1
NSWindowUserTabbingPreferenceInFullScreen 2
NSWindowUserTabbingPreferenceManual 0

The biggest plugin in space...