Platforms to show: All Mac Windows Linux Cross-Platform
NSStatusItemMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Statusitem | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
- 5 events
- event Action
- event DidChangeOcclusionState New in 24.4
- event DidMove New in 24.4
- event DidResize New in 24.4
- event DoubleAction
- 18 properties
- property alternateImage as NSImageMBS
- property attributedTitle as NSAttributedStringMBS
- property Button as Variant
- property Enabled as boolean
- property frame as NSRectMBS New in 24.4
- property Handle as Integer
- property Height as single
- property HighlightMode as boolean
- property image as NSImageMBS
- property Left as single
- property Length as single
- property Menu as NSMenuMBS
- property Title as String
- property ToolTip as String
- property Top as single
- property View as NSViewMBS
- property Width as single
- property Window as NSWindowMBS
- 8 methods
- method Close
- method CreateMenu as boolean
- method CreateMenu(length as single) as boolean
- method DrawStatusBarBackground(x as Double, y as Double, width as Double, height as Double, highlight as boolean)
- method popUpStatusItemMenu(menu as NSMenuMBS)
- method SendActionOn(mode as Integer)
- 3 shared methods
- shared method Available as boolean
- shared method MenuIsVertical as boolean
- shared method MenuThickness as Double
This class has no sub classes.
Some examples using this class:
- /MacCocoa/EasyStatusItem
- /MacCocoa/NSStatusItem/Display current iTunes Song
- /MacCocoa/NSStatusItem/Logintime in menubar
- /MacCocoa/NSStatusItem/Name in menu bar
- /MacCocoa/NSStatusItem/StatusItem with Image in menu
- /MacCocoa/NSStatusItem/StatusItem with NSView
- /MacCocoa/NSStatusItem/StatusItem with PDF Icon
- /MacCocoa/NSStatusItem/Statusitem with PopOver
- /MacCocoa/NSStatusItem/Statusitem with slider in menubar
- /MacCocoa/NSStatusItem/Statusitem with textfield in menubar
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.4
- MBS Xojo Plugins, version 24.4pr6
- IP in menubar 4.6
- MBS Xojo Plugins, version 17.5pr9
- IP in menubar 4.5
- NSImage and image orientation
- Reducing app size with #if
- One reason to upgrade REALbasic
- MBS REALbasic plug-in 9.6
- MonkeyBread Software Releases the MBS Plugins 8.2
Xojo Developer Magazine
Release notes
- Version 24.4
- Added DidChangeOcclusionState event for NSStatusItemMBS class to detect if your item is not shown.
- Added DidMove and DidResize events for NSStatusItemMBS class.
- Version 17.5
- Deprecated NSStatusItemMBS.CreateMenuMiddle and NSStatusItemMBS.CreateMenuRight.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSStatusBarButtonMBS - NSStepperMBS