Declared in DTColor+Compatibility.h

Overview

Methods used to work with HTML representations of colors.

Class Methods

colorWithCGColor:

Converts a CGColorRef into an NSColor by placing each component into an NSColor and pending on the component count to return a grayscale or rgb color. If there are not 2 (grayscale) or 4 (rgba) components the color is from an unsupported color space and nil is returned.

+ (NSColor *)colorWithCGColor:(CGColorRef)cgColor

Parameters

cgColor

The CGColorRef to convert

Return Value

An NSColor of this CGColorRef

Declared In

DTColor+Compatibility.h

Instance Methods

CGColor

Converts an NSColor into a CGColorRef.

- (CGColorRef)CGColor

Return Value

A CGColorRef of this NSColor

Declared In

DTColor+Compatibility.h