Returns the components of the receiver as an array.
- macOS 10.4+
An array containing the components of the color object as
You can invoke this method on
NSColor objects created from custom color spaces to get the individual floating-point components, including alpha. Raises an exception if the receiver doesn’t have floating-point components. To find out how many components are in the
components array, use the