Instance Property

visible

A Boolean value indicating if the menu bar currently displays the status item.

Declaration

@property(assign, getter=isVisible) BOOL visible;

Discussion

Setting this property either shows or hides the status item within the menu bar. The item’s visiblity may also change if the user removes the item manually, and you can watch for changes in visibility using key-value observation. The status item’s visiblity persists and restores automatically based on the value of autosaveName.

This property returns YES even if the status item is temporarily hidden due to insufficient space in the menu bar. The default value is YES.

See Also

Configuring the Status Item’s Appearance

length

The amount of space in the status bar that should be allocated to the status item.

NSSquareStatusItemLength

A status item length that is equal to the status bar’s thickness.

NSVariableStatusItemLength

A status item length that dynamically adjusts to the width of its contents.