Initializes and returns an
NSColor object initialized from a Core Graphics color-space object.
- macOS 10.5+
A reference to a Core Graphics color-space object (
NSColor object or
nil if initialization was not successful, which might happen if the color space represented by the
CGColor object is not supported by
NSColor might retain or copy the
CGColor object depending on circumstances, you should not assume pointer equality of the provided object with that returned by
CGColor. And even if the pointer equality is preserved during runtime, it may not be after the
NSColor object is archived and unarchived.