Instance Method


Activates the receiver, displays the color panel, and makes the current color the same as its own.


func activate(_ exclusive: Bool)



true to deactivate any other color wells; false to keep them active. If a color panel is active with exclusive set to true and another is subsequently activated with exclusive set to false, the exclusive setting of the first panel is ignored.


This method redraws the receiver. An active color well will have its color updated when the current color of the NSColorPanel changes. Any color well that shows its border highlights the border when it’s active.

See Also

Activating and Deactivating Color Wells

var isActive: Bool

A Boolean value that determines whether the color well is active.

func deactivate()

Deactivates the receiver and redraws it.