Platforms to show: All Mac Windows Linux Cross-Platform
NSWindowMBS constants
- const NSBorderlessWindowMask=0
- const NSClosableWindowMask=2
- const NSDirectSelection=0
- const NSFullScreenWindowMask = 16384
- const NSFullSizeContentViewWindowMask = 32768
- const NSMiniaturizableWindowMask=4
- const NSResizableWindowMask=8
- const NSSelectingNext=1
- const NSSelectingPrevious=2
- const NSTexturedBackgroundWindowMask=256
- const NSTitledWindowMask=1
- const NSUnifiedTitleAndToolbarWindowMask=4096
- const NSUnscaledWindowMask=2048
- const NSWindowBackingLocationDefault=0
- const NSWindowBackingLocationMainMemory=2
- const NSWindowBackingLocationVideoMemory=1
- const NSWindowCloseButton=0
- const NSWindowCollectionBehaviorCanJoinAllSpaces=1
- const NSWindowCollectionBehaviorDefault=0
- const NSWindowCollectionBehaviorFullScreenAuxiliary = 256
- const NSWindowCollectionBehaviorFullScreenPrimary = 128
- const NSWindowCollectionBehaviorIgnoresCycle=64
- const NSWindowCollectionBehaviorManaged=4
- const NSWindowCollectionBehaviorMoveToActiveSpace=2
- const NSWindowCollectionBehaviorParticipatesInCycle=32
- const NSWindowCollectionBehaviorStationary=16
- const NSWindowCollectionBehaviorTransient=8
- const NSWindowDocumentIconButton=4
- const NSWindowDocumentVersionsButton = 6
- const NSWindowFullScreenButton = 7
- const NSWindowMiniaturizeButton=1
- const NSWindowNumberListAllApplications=1
- const NSWindowNumberListAllSpaces=16
- const NSWindowSharingNone=0
- const NSWindowSharingReadOnly=1
- const NSWindowSharingReadWrite=2
- const NSWindowToolbarButton=3
- const NSWindowZoomButton=2
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 |