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 |
(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 |
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 |
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 |
(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 |
(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 |
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 |
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 |
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 |
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 |
Constants for special values:
NSVariableStatusItemLength | -1 |
NSSquareStatusItemLength | -2 |
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 |
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 |
(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 |
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Statusitem | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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 |
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 |
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 |
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.