---
title: windows
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsapplication/windows
---

# windows

An array of the app’s window objects.

## Declaration

```swift
var windows: [NSWindow] { get }
```

## Discussion

Discussion This property contains an array of NSWindow objects corresponding to all currently existing windows for the app. The array includes all onscreen and offscreen windows, whether or not they are visible on any space. There is no guarantee of the order of the windows in the array.

## See Also

### Managing App Windows

- [keyWindow](appkit/nsapplication/keywindow.md)
- [mainWindow](appkit/nsapplication/mainwindow.md)
- [window(withWindowNumber:)](appkit/nsapplication/window(withwindownumber:).md)
- [makeWindowsPerform(_:inOrder:)](appkit/nsapplication/makewindowsperform(_:inorder:).md)
- [enumerateWindows(options:using:)](appkit/nsapplication/enumeratewindows(options:using:).md)
- [NSApplication.WindowListOptions](appkit/nsapplication/windowlistoptions.md)
