Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSMenuItemMBS.MenuItem(MenuItem as MenuItem) as NSMenuItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Menus MBS MacBase Plugin 18.3 Yes No No No No
Function: Queries NSMenuItemMBS for a given menu item.
Example:
dim FileDot, FileDiamond as MenuItem

FileDot.enable
FileDot.checked = true

// via constructor
dim n1 as new NSMenuItemMBS(fileDot)
n1.onStateImage = NSImageMBS.imageNamed("NSMenuItemBullet")

FileDiamond.enable
FileDiamond.checked = true

// via function
dim n2 as NSMenuItemMBS = NSMenuItemMBS.MenuItem(FileDiamond)
n2.onStateImage = NSImageMBS.imageNamed("NSMenuItemDiamond")
Notes: Returns nil on any error.

Feedback, Comments & Corrections

NSMenuItemMBS.separatorItem as NSMenuItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Menus MBS MacBase Plugin 15.2 Yes No No Yes, macOS only No
Function: Creates a new separator menu item.

Feedback, Comments & Corrections

NSMenuItemMBS.usesUserKeyEquivalents as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Menus MBS MacBase Plugin 11.2 Yes No No Yes, macOS only No
Function: Whether menu items conform to user preferences for key equivalents.
Notes:
If true, menu items conform to user preferences for key equivalents; if false, the key equivalents originally assigned to the menu items are used.
(Read and Write computed property)

Feedback, Comments & Corrections

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




Links
MBS Xojo tutorial videos