Enumeration

NSWindowStyleMask

These constants specify the style of a window, and can be combined using the C bitwise OR operator.

Declaration

typedef enum NSWindowStyleMask : NSUInteger {
    ...
} NSWindowStyleMask;

Topics

Constants

NSWindowStyleMaskBorderless

The window displays none of the usual peripheral elements. Useful only for display or caching purposes. A window that uses NSWindowStyleMaskBorderless can’t become key or main, unless the value of canBecomeKeyWindow or canBecomeMainWindow is YES. Note that you can set a window’s or panel’s style mask to NSWindowStyleMaskBorderless in Interface Builder by deselecting Title Bar in the Appearance section of the Attributes inspector.

NSWindowStyleMaskTitled

The window displays a title bar.

NSWindowStyleMaskClosable

The window displays a close button.

NSWindowStyleMaskMiniaturizable

The window displays a minimize button.

NSWindowStyleMaskResizable

The window is displays a resize control.

NSWindowStyleMaskTexturedBackground

The window uses a textured background that darkens when the window is key or main and lightens when it is inactive, and may have a second gradient in the section below the window content.

Deprecated
NSWindowStyleMaskUnifiedTitleAndToolbar

This constant has no effect, because all windows that include a toolbar use the unified style.

NSWindowStyleMaskFullScreen

The window can appear full screen. A fullscreen window does not draw its title bar, and may have special handling for its toolbar. (This mask is automatically toggled when toggleFullScreen: is called.)

NSWindowStyleMaskFullSizeContentView

When set, the window’s contentView consumes the full size of the window. Although you can combine this constant with other window style masks, it is respected only for windows with a title bar. Note that using this mask opts in to layer-backing. Use the contentLayoutRect or the contentLayoutGuide to lay out views underneath the title bar–toolbar area.

NSWindowStyleMaskUtilityWindow

The window is a panel or a subclass of NSPanel.

NSWindowStyleMaskDocModalWindow

The window is a document-modal panel (or a subclass of NSPanel).

NSWindowStyleMaskNonactivatingPanel

The window is a panel or a subclass of NSPanel that does not activate the owning app.

NSWindowStyleMaskHUDWindow

The window is a HUD panel.

Deprecated

NSBorderlessWindowMask

The window displays none of the usual peripheral elements. Useful only for display or caching purposes. A window that uses NSBorderlessWindowMask can’t become key or main, unless the value of canBecomeKeyWindow or canBecomeMainWindow is YES. Note that you can set a window’s or panel’s style mask to NSBorderlessWindowMask in Interface Builder by deselecting Title Bar in the Appearance section of the Attributes inspector.

Deprecated
NSTitledWindowMask

The window displays a title bar.

Deprecated
NSClosableWindowMask

The window displays a close button.

Deprecated
NSMiniaturizableWindowMask

The window displays a minimize button.

Deprecated
NSResizableWindowMask

The window displays a resize control.

Deprecated
NSTexturedBackgroundWindowMask

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.

Deprecated
NSUnifiedTitleAndToolbarWindowMask

The window's title bar and toolbar have a unified look—that is, a continuous background. A horizontal separator line appears under the title bar and toolbar .

Deprecated
NSFullScreenWindowMask

The window can appear full screen. A fullscreen window does not draw its title bar, and may have special handling for its toolbar. This mask is automatically toggled when toggleFullScreen: is called.

Deprecated
NSFullSizeContentViewWindowMask

When set, the content view consumes the full size of the window; it can be combined with other window style masks, but is only respected for windows with a title bar. Using this mask opts in to layer backing. Use the contentLayoutRect or contentLayoutGuide to lay out views underneath the title bar-toolbar area.

Deprecated