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.

See Also

Managing the Status Item’s Behavior

var menu: NSMenu?

The pull-down menu that is displayed when the status item is clicked.