The color space associated with the color.
- macOS 10.4+
Access this property only for colors that have an associated color space—specifically, colors not created by name or using a pattern image. Accessing it for other color types raises an exception. If you are unsure about a color object, convert it to an equivalent
NSColor-based object before calling this method.
It is safe to access this property for color objects created with the color space names
custom—or with the
NSColor class methods corresponding to these names.