---
title: orderFrontRegardless()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nswindow/orderfrontregardless()
---

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

## Declaration

```swift
func orderFrontRegardless()
```

## Discussion

Discussion Normally an NSWindow object can’t be moved in front of the key window unless it and the key window are in the same application. You should rarely need to invoke this method; it’s designed to be used when applications are cooperating in such a way that an active application (with the key window) is using another application to display data.

## See Also

### Managing Window Layers

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