Instance Property

level

The window level of the window.

Declaration

@property NSWindowLevel level;

Discussion

See Window Levels for a list of possible values. Each level in the list groups windows within it in front of those in all preceding groups. Floating windows, for example, appear in front of all normal-level windows. When a window enters a new level, it’s ordered in front of all its peers in that level.

The constant NSTornOffMenuWindowLevel is preferable to its synonym, NSSubmenuWindowLevel.

See Also

Managing Window Layers

- orderOut:

Removes the window from the screen list, which hides the window.

- orderBack:

Moves the window to the back of its level in the screen list, without changing either the key window or the main window.

- orderFront:

Moves the window to the front of its level in the screen list, without changing either the key window or the main window.

- orderFrontRegardless

Moves the window to the front of its level, even if its application isn’t active, without changing either the key window or the main window.

- orderWindow:relativeTo:

Repositions the window’s window device in the window server’s screen list.

NSWindowLevel

The standard window levels in macOS.