<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplication/arrangeInFront(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSApplication(im)arrangeInFront:"
  },
  "title" : "arrangeInFront(_:)"
}
-->

# arrangeInFront(_:)

Arranges windows listed in the Window menu in front of all other windows.

```
func arrangeInFront(_ sender: Any?)
```

## Parameters

`sender`

The object that sent the command.

## Discussion

Windows associated with the app but not listed in the Window menu are not ordered to the front.

## See Also

[`addWindowsItem(_:title:filename:)`](/documentation/AppKit/NSApplication/addWindowsItem(_:title:filename:))

Adds an item to the Window menu for a given window.

[`removeWindowsItem(_:)`](/documentation/AppKit/NSApplication/removeWindowsItem(_:))

Removes the Window menu item for a given window.

[`makeKeyAndOrderFront(_:)`](/documentation/AppKit/NSWindow/makeKeyAndOrderFront(_:))

Moves the window to the front of the screen list, within its level, and makes it the key window; that is, it shows the window.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)