Contents

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:

    - Out: The window is removed from the screen list and otherWin is ignored.

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

    • Below: 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

Related Documentation

Managing Window Layers