Instance Method

order(_:relativeTo:)

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

Declaration

func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)

Parameters

place
otherWin

The number of the window the window is to be placed in front of or behind. Pass 0 to place the window in front of (when place is NSWindowAbove) or behind (when place is NSWindowBelow) all other windows in its level.

See Also

Managing Window Layers

func orderOut(Any?)

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

func orderBack(Any?)

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

func orderFront(Any?)

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

func 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.

var level: NSWindow.Level

The window level of the window.

struct NSWindow.Level

The standard window levels in macOS.