Instance Method

setEnabled(_:)

Sets whether the toolbar item is enabled.

Declaration

func setEnabled(_ enabled: Bool)

Parameters

enabled

true to enable the toolbar item; otherwise false.

See Also

Controlling Toolbar Items

func setEnabled(Bool, withBadgeText: String?)

Sets the enabled state and the badge text for the toolbar item.

Deprecated
func setBadgeText(String?)

Sets the badge text for the toolbar item.

func setImage(NSImage?)

Sets the image displayed in the toolbar button.