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 canBecomeKey
or canBecomeMain
is true
. 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.NSTitledWindowMask
The window displays a title bar.
NSClosableWindowMask
The window displays a close button.
NSMiniaturizableWindowMask
The window displays a minimize button.
NSResizableWindowMask
The window displays a resize control.
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.
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 .
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.