Represent colors using built-in or custom formats, and give users options for selecting and applying colors.



class NSColor

An object that stores color data and sometimes opacity (alpha value).

class NSColorList

An ordered list of color objects, identified by keys.

class NSColorSpace

An object that represents a custom color spaces.

Color Selection

class NSColorPicker

An abstract superclass that implements the NSColorPickingDefault protocol.

class NSColorWell

A control that displays a color value and lets the user change that color value.

class NSColorPickerTouchBarItem

A bar item that provides a system-defined color picker.

Color Sampler

class NSColorSampler

An object that displays the system's color-sampling interface and returns the selected color to your app.

See Also

Graphics, Drawing, Color, and Printing

Images and PDF

Create and manage images, in bitmap, PDF, and other formats.


Draw shapes, images, and other content on the screen.


Display the system print panels and manage the printing process.