---
title: NSWindowList
framework: appkit
role: symbol
role_heading: Function
path: appkit/nswindowlist
---

# NSWindowList

Gets information about onscreen windows.

## Declaration

```occ
extern void NSWindowList(NSInteger size, NSInteger list[]);
```

## Discussion

Discussion Provides an ordered list of all onscreen windows. It fills list with up to size window numbers; the order of windows in the array is the same as their order in the window server’s screen list (their front-to-back order on the screen). Use the count obtained by NSCountWindows to specify the size of the array for this function.

## See Also

### Functions

- [NSConvertGlyphsToPackedGlyphs(_:_:_:_:)](appkit/nsconvertglyphstopackedglyphs(_:_:_:_:).md)
- [NSOpenGLGetOption](appkit/nsopenglgetoption.md)
- [NSOpenGLGetVersion](appkit/nsopenglgetversion.md)
- [NSOpenGLSetOption](appkit/nsopenglsetoption.md)
- [raiseBadArgumentException(_:_:_:)](appkit/nsaccessibility-swift.struct/raisebadargumentexception(_:_:_:).md)
- [NSBeginAlertSheet](appkit/nsbeginalertsheet.md)
- [NSBeginCriticalAlertSheet](appkit/nsbegincriticalalertsheet.md)
- [NSBeginInformationalAlertSheet](appkit/nsbegininformationalalertsheet.md)
- [NSGetAlertPanel](appkit/nsgetalertpanel.md)
- [NSGetCriticalAlertPanel](appkit/nsgetcriticalalertpanel.md)
- [NSGetInformationalAlertPanel](appkit/nsgetinformationalalertpanel.md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSRunAlertPanel](appkit/nsrunalertpanel.md)
- [NSRunCriticalAlertPanel](appkit/nsruncriticalalertpanel.md)
- [NSRunInformationalAlertPanel](appkit/nsruninformationalalertpanel.md)
