---
title: NSAvailableWindowDepths
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsavailablewindowdepths
---

# NSAvailableWindowDepths

Returns the available window depth values.

## Declaration

```occ
extern const NSWindowDepth *NSAvailableWindowDepths();
```

## Discussion

Discussion Returns a null-terminated array of NSWindow.Depth values that specify which window depths are currently available. Window depth values are converted to specific display properties using the functions bitsPerPixel, bitsPerSample, colorSpaceName, and isPlanar.

## See Also

### Working with Window Depths

- [NSBestDepth](appkit/nsbestdepth.md)
- [bitsPerPixel](appkit/nswindow/depth/bitsperpixel.md)
- [bitsPerSample](appkit/nswindow/depth/bitspersample.md)
- [colorSpaceName](appkit/nswindow/depth/colorspacename.md)
- [numberOfColorComponents](appkit/nscolorspacename/numberofcolorcomponents.md)
- [isPlanar](appkit/nswindow/depth/isplanar.md)
- [canRepresent(_:)](appkit/nswindow/canrepresent(_:).md)
