---
title: "orderOut(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/orderout(_:)"
---

# orderOut(_:)

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

## Declaration

```swift
func orderOut(_ sender: Any?)
```

## Parameters

- `sender`: The window to remove.

## Discussion

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

### Related Documentation

- [isReleasedWhenClosed](appkit/nswindow/isreleasedwhenclosed.md)

### Managing Window Layers

- [orderBack(_:)](appkit/nswindow/orderback(_:).md)
- [orderFront(_:)](appkit/nswindow/orderfront(_:).md)
- [orderFrontRegardless()](appkit/nswindow/orderfrontregardless().md)
- [order(_:relativeTo:)](appkit/nswindow/order(_:relativeto:).md)
- [level](appkit/nswindow/level-swift.property.md)
- [NSWindow.Level](appkit/nswindow/level-swift.struct.md)
