<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/defaultDepthLimit",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(cpy)defaultDepthLimit"
  },
  "title" : "defaultDepthLimit"
}
-->

# defaultDepthLimit

Returns the default depth limit for instances of `NSWindow`.

```
class var defaultDepthLimit: NSWindow.Depth { get }
```

## Return Value

The default depth limit for instances of `NSWindow`, determined by the depth of the deepest screen level available to the window server.

## Discussion

The value returned can be examined with the Application Kit functions [`isPlanar`](/documentation/AppKit/NSWindow/Depth/isPlanar), [`colorSpaceName`](/documentation/AppKit/NSWindow/Depth/colorSpaceName), [`bitsPerSample`](/documentation/AppKit/NSWindow/Depth/bitsPerSample), and [`bitsPerPixel`](/documentation/AppKit/NSWindow/Depth/bitsPerPixel).

## See Also

[`func canStoreColor() -> Bool`](/documentation/AppKit/NSWindow/canStoreColor())

Indicates whether the window has a depth limit that allows it to store color values.



---

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)