<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAvailableWindowDepths",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSAvailableWindowDepths"
  },
  "title" : "NSAvailableWindowDepths"
}
-->

# NSAvailableWindowDepths

Returns the available window depth values.

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

## Discussion

Returns a null-terminated array of [`NSWindow.Depth`](/documentation/AppKit/NSWindow/Depth) values that specify which window depths are currently available. Window depth values are converted to specific display properties using the functions [`bitsPerPixel`](/documentation/AppKit/NSWindow/Depth/bitsPerPixel), [`bitsPerSample`](/documentation/AppKit/NSWindow/Depth/bitsPerSample), [`colorSpaceName`](/documentation/AppKit/NSWindow/Depth/colorSpaceName), and [`isPlanar`](/documentation/AppKit/NSWindow/Depth/isPlanar).

---

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)