Contents

setAction(_:)

Sets the color panel’s action message.

Declaration

func setAction(_ selector: Selector?)

Parameters

  • selector:

    The action message.

Discussion

When you select a color in the color panel NSColorPanel sends its action to its target, provided that neither the action nor the target is nil. The action is NULL by default.

See Also

Configuring the color panel