Instance Method

orderWindow:relativeTo:

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

Declaration

- (void)orderWindow:(NSWindowOrderingMode)place relativeTo:(NSInteger)otherWin;

Parameters

place
  • NSWindowOut: The window is removed from the screen list and otherWin is ignored.

  • NSWindowAbove: The window is ordered immediately in front of the window whose window number is otherWin

  • NSWindowBelow: The window is placed immediately behind the window represented by otherWin.

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

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

level

The window level of the window.

NSWindowLevel

The standard window levels in macOS.