<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/canStoreColor()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(im)canStoreColor"
  },
  "title" : "canStoreColor()"
}
-->

# canStoreColor()

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

```
func canStoreColor() -> Bool
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> when the window’s depth limit allows it to store color values; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`shouldDrawColor()`](/documentation/AppKit/NSView/shouldDrawColor())

Returns a Boolean value indicating whether the view is being drawn to an environment that supports color.

[`depthLimit`](/documentation/AppKit/NSWindow/depthLimit)

The depth limit of the window.



---

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)