setTarget(_:)
Sets the target of the receiver.
Declaration
func setTarget(_ target: Any?)Parameters
- target:
The target of the receiver. When you select a color in the color panel
NSColorPanelsends its action to its target, provided that neither the action nor the target isnil. The target isnilby default.