Instance Method

changeColor:

Sent to the first responder when the user selects a color in an NSColorPanel object.

Declaration

- (void)changeColor:(id)sender;

Parameters

sender

The NSColorPanel sending the message.

Discussion

When the user selects a color in an NSColorPanel object, the panel tries to call this method on the first responder. You can override this method in any responder that needs to respond to a color change.

See Also

Responding to a Color Change

NSColorPanelColorDidChangeNotification

Posted when the color of the NSColorPanel is set, as when NSColorPanel is invoked.