Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSStatusItemMBS.alternateImage as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: An alternate image to be displayed when a status bar item is highlighted.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.attributedTitle as NSAttributedStringMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The attributed string that is displayed at the status item's position in the status bar.
Notes:
If an image is also set, the title appears to the right of the image.
(Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Button as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 15.0 Yes No No Yes, macOS only No
Function: The button that is displayed in the status bar.
Notes:
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)

Feedback, Comments & Corrections

NSStatusItemMBS.Enabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: Whether this status item is enabled.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The handle of the NSStatusItem object used internally.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Height as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The height of the status item.
Notes:
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)

Feedback, Comments & Corrections

NSStatusItemMBS.HighlightMode as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: Whether the receiver is highlighted when clicked.
Notes:
If you use HighlightMode and Menu, you need to first assign the menu and later set HighlightMode to true.
(Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.image as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The image that is displayed at the statusitem's position in the status bar.
Notes:
nil if an image has not been set.
(Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Left as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The left position of the status item.
Notes:
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)

Feedback, Comments & Corrections

NSStatusItemMBS.Length as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The length of the status item in pixels.
Notes:
Constants for special values:
NSVariableStatusItemLength-1
NSSquareStatusItemLength-2
(Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Menu as NSMenuMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The menu attached to this statusitem.
Notes:
Nil if no menu is attached.
(Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Title as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The title of the status item.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.ToolTip as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The help tag for a menu item.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSStatusItemMBS.Top as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The top position of the status item.
Notes:
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)

Feedback, Comments & Corrections

NSStatusItemMBS.View as NSViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 8.2 Yes No No Yes, macOS only No
Function: Sets the view to be used for this status menuitem.
Notes:
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)

Feedback, Comments & Corrections

NSStatusItemMBS.Width as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The width of the status item.
Notes:
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)

Feedback, Comments & Corrections

NSStatusItemMBS.Window as NSWindowMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Statusitem MBS MacCocoa Plugin 8.2 Yes No No Yes, macOS only No
Function: The window used for this NSStatusItem.
Notes:
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)

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins