Mac Developer Library

Developer

AppKit Framework Reference CIColor Additions Reference

Options
Deployment Target:

On This Page
Language:

CIColor

The Application Kit extends the Core Image framework’s CIColor in CIColor Class Reference class by adding the ability to create an instance of CIColor from an existing NSColor instance.

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


import AppKit @import AppKit;

Availability


Available in OS X v10.4 and later.
  • Initializes a newly allocated CIColor object using an NSColor object.

    Declaration

    Swift

    init?(color color: NSColor)

    Objective-C

    - (instancetype)initWithColor:(NSColor *)color

    Parameters

    color

    The initial color value, which can belong to any available colorspace.

    Return Value

    The resulting CIColor object, or nil if the object cannot be initialized with the specified value.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.