CIColor Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.4 and later.
Declared in
NSColor.h

Overview

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

Tasks

Creating a CIColor Instance

Instance Methods

initWithColor:

Initializes a newly allocated CIColor object using an NSColor object.

- (id)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.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSColor.h