Protocol

NSColorPickingCustom

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.

Overview

Symbols

Configuring Color Pickers

func setColor(NSColor)
Required.

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

Getting Color Picker Information

func currentMode()
Required.

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

func supportsMode(NSColorPanelMode)
Required.

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

Displaying Color Pickers

func provideNewView(Bool)
Required.

Returns the view containing the receiver’s user interface.

Relationships