Instance Method

setBadgeText(_:)

Sets the badge text for the toolbar item.

Declaration

func setBadgeText(_ badgeText: String?)

Parameters

badgeText

String to display on the badge. Pass nil to remove the badge.

See Also

Controlling Toolbar Items

func setEnabled(Bool, withBadgeText: String?)

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

Deprecated
func setEnabled(Bool)

Sets whether the toolbar item is enabled.

func setImage(NSImage?)

Sets the image displayed in the toolbar button.