---
title: canStoreColor()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nswindow/canstorecolor()
---

# canStoreColor()

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

## Declaration

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

## Return Value

Return Value true when the window’s depth limit allows it to store color values; otherwise, false.

## See Also

### Related Documentation

- [shouldDrawColor()](appkit/nsview/shoulddrawcolor().md)
- [depthLimit](appkit/nswindow/depthlimit.md)

### Methods

- [gState()](appkit/nswindow/gstate().md)
- [enableFlushing()](appkit/nswindow/enableflushing().md)
- [disableFlushing()](appkit/nswindow/disableflushing().md)
- [flush()](appkit/nswindow/flush().md)
- [flushIfNeeded()](appkit/nswindow/flushifneeded().md)
- [menuChanged(_:)](appkit/nswindow/menuchanged(_:).md)
- [cacheImage(in:)](appkit/nswindow/cacheimage(in:).md)
- [restoreCachedImage()](appkit/nswindow/restorecachedimage().md)
- [discardCachedImage()](appkit/nswindow/discardcachedimage().md)
- [useOptimizedDrawing(_:)](appkit/nswindow/useoptimizeddrawing(_:).md)
- [init(windowRef:)](appkit/nswindow/init(windowref:).md)
