Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSStatusItemMBS class.

NSStatusItemMBS.alternateImage as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
An alternate image to be displayed when a status bar item is highlighted.

(Read and Write property)

NSStatusItemMBS.attributedTitle as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The attributed string that is displayed at the status item's position in the status bar.

If an image is also set, the title appears to the right of the image.
(Read and Write property)

NSStatusItemMBS.Button as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 15.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The button that is displayed in the status bar.

Value is a NSStatusBarButtonMBS object. Returned as Variant to reduce plugin dependencies.

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

Available on Mac OS X 10.10 and newer.
(Read only property)

NSStatusItemMBS.Enabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether this status item is enabled.

(Read and Write property)

NSStatusItemMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The handle of the NSStatusItem object used internally.

(Read and Write property)

NSStatusItemMBS.Height as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The height of the status item.

Should be 22 pixels.
This is a function using undocumented features from the Apple NSStatusItem class, so there is not guarantee that it will work in future versions.
(Read only property)

NSStatusItemMBS.HighlightMode as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver is highlighted when clicked.

If you use HighlightMode and Menu, you need to first assign the menu and later set HighlightMode to true.
(Read and Write property)

NSStatusItemMBS.image as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The image that is displayed at the statusitem's position in the status bar.

nil if an image has not been set.
(Read and Write property)

NSStatusItemMBS.Left as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The left position of the status item.

Valid only after item was drawn the first time.
This is a function using undocumented features from the Apple NSStatusItem class, so there is not guarantee that it will work in future versions.
(Read only property)

NSStatusItemMBS.Length as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The length of the status item in pixels.

Constants for special values:
NSVariableStatusItemLength-1
NSSquareStatusItemLength-2
(Read and Write property)

NSStatusItemMBS.Menu as NSMenuMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The menu attached to this statusitem.

Nil if no menu is attached.
(Read and Write property)

NSStatusItemMBS.Title as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The title of the status item.

(Read and Write property)

NSStatusItemMBS.ToolTip as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The help tag for a menu item.

(Read and Write property)

NSStatusItemMBS.Top as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The top position of the status item.

Always 0.
This is a function using undocumented features from the Apple NSStatusItem class, so there is not guarantee that it will work in future versions.
(Read only property)

NSStatusItemMBS.View as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 8.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the view to be used for this status menuitem.

Using a custom view you can draw whatever you like in the menu item.
You can set it to nil to remove the view.
(Read and Write property)

NSStatusItemMBS.Width as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The width of the status item.

This is a function using undocumented features from the Apple NSStatusItem class, so there is not guarantee that it will work in future versions.
(Read only property)

NSStatusItemMBS.Window as NSWindowMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Statusitem MBS MacCocoa Plugin 8.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The window used for this NSStatusItem.

This is a function using undocumented features from the Apple NSStatusItem class, so there is not guarantee that it will work in future versions.
Returns nil on 64 bit target.
(Read only property)

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...