Protocol

NSColorPickingCustom

A set of methods that provides a way to add color pickers—custom user interfaces for color selection—to an app’s color panel.

Declaration

@protocol NSColorPickingCustom

Overview

NSColorPickingCustom works with the NSColorPickingDefault protocol—which provides basic behavior for a color picker—to enable custom color pickers.

Topics

Configuring Color Pickers

- setColor:

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

Required.

Getting Color Picker Information

- currentMode

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

Required.

- supportsMode:

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

Required.

Displaying Color Pickers

- provideNewView:

Returns the view containing the receiver’s user interface.

Required.

Relationships

See Also

Color Panels

NSColorPanel

A standard user interface for selecting color in an app.

NSColorPickingDefault

A set of methods that provides basic behavior for a color picker.

NSColorPicker

An abstract superclass that implements the NSColorPickingDefault protocol.