Instance Property

button

The button that is displayed in the status bar.

Declaration

var button: NSStatusBarButton? { get }

Discussion

This button is created automatically on the creation of the status item. Behavior customization for the button, such as image, target, action, tooltip, and so on can be set with this property.