Together with the NSColorPickingDefault protocol, NSColorPickingCustom provides a way to add color pickers—custom user interfaces for color selection—to an application’s NSColorPanel instance. The NSColorPickingDefault protocol provides basic behavior for a color picker. The NSColorPicker class adopts the NSColorPickingDefault protocol.



Configuring Color Pickers

func setColor(NSColor)

Adjusts the receiver to make the specified color the currently selected color.

Getting Color Picker Information

func currentMode()

Returns the receiver’s current mode (or submode, if applicable).

func supportsMode(NSColorPanelMode)

Returns a Boolean value indicating whether or not the receiver supports the specified picking mode.

Displaying Color Pickers

func provideNewView(Bool)

Returns the view containing the receiver’s user interface.