Instance Method

orderOut:

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

Declaration

- (void)orderOut:(id)sender;

Parameters

sender

The window to remove.

Discussion

If the window is the key or main window, the window object immediately behind it is made key or main in its place. Calling orderOut: causes the window to be removed from the screen, but does not cause it to be released. See the close method for information on when a window is released. Calling orderOut: on a child window causes the window to be removed from its parent window before being removed.

The default animation based on the window type will be used when the window is ordered out unless it has been modified by the animationBehavior property.

See Also

Managing Window Layers

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

level

The window level of the window.

NSWindowLevel

The standard window levels in macOS.