Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSMenuItemCellMBS class.
NSMenuItemCellMBS.menuItem as NSMenuItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSMenuItemCellMBS.needsDisplay as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Set this property to true when you want the menu item to be drawn.
(Read and Write property)
NSMenuItemCellMBS.needsSizing as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
When the value of this property is true, the next attempt to obtain size information about the menu cause the calcSize method to be called. When the value of the property is false, the size information is obtained from the currently cached values.
Subclasses that drastically change the way a menu item is drawn can change the value of this property to update the menu item information. Other parts of your application should not need to change this property directly. The cell checks this value of this property as necessary when the content of its menu item changes.
(Read and Write property)
NSMenuItemCellMBS.tag as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If no item is selected, the value in this property is 0.
(Read and Write property)
The items on this page are in the following plugins: MBS MacCocoa Plugin.