Instance Method

insertNewButtonImage:in:

Sets the image of a given button cell.

Required.

Declaration

- (void)insertNewButtonImage:(NSImage *)newButtonImage in:(NSButtonCell *)buttonCell;

Parameters

newButtonImage

The image to set for the button cell.

buttonCell

The NSButtonCell object that lets the user choose the picker from the color panel—the color picker’s representation in the NSMatrix of the NSColorPanel.

Discussion

This method should perform application-specific manipulation of the image before it’s inserted and displayed by the button cell.

See Also

Configuring Color Pickers

- setMode:

Specifies the receiver’s mode.

Required.

- provideNewButtonImage

Provides the image of the button used to select the receiver in the color panel.

Required.

- minContentSize

Indicates the receiver’s minimum content size.

Required.

- buttonToolTip

Provides the toolbar button help tag.

Required.