Class

NSColorPicker

An abstract superclass that implements the NSColorPickingDefault protocol.

Declaration

@interface NSColorPicker : NSObject

Overview

The NSColorPickingDefault and NSColorPickingCustom protocols define a way to add color pickers (custom user interfaces for color selection) to the color panel.

Topics

Initializing an NSColorPicker Object

- initWithPickerMask:colorPanel:

Initializes the color picker with the specified color panel and color picker mode mask.

Getting the Color Panel

colorPanel

The NSColorPanel instance that owns the color picker.

Adding Button Images

- insertNewButtonImage:in:

Sets the image used for the specified button cell.

provideNewButtonImage

The button image used by the color picker.

Setting the Mode

- setMode:

Does nothing. Override to set the color picker’s mode.

Managing Color Lists

- attachColorList:

Does nothing. Override to attach a color list to a color picker.

- detachColorList:

Does nothing. Override to detach a color list from a color picker.

Responding to View Changes

- viewSizeChanged:

Does nothing. Override to respond to a size change.

Customizing the Color Picker

buttonToolTip

The tool tip that is shown when the mouse cursor is over the color picker’s button image.

minContentSize

the minimum content size.

Relationships

Inherits From

See Also

Color Panels

NSColorPanel

A standard user interface for selecting color in an app.

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.

NSColorPickingDefault

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