Le 8 avr. 2013 à 17:33, Osswald Oliver a écrit: > With this code I can now hide the "small size" menuitem from the toolbar menu: > > // Hide Small Size Option of Menu > Dim v As NSViewMBS = Self.NSWindowMBS.toolbarView > Dim m As NSMenuMBS = v.menu > Dim i As NSMenuItemMBS = m.Item(5) // use small size > i.isHidden=True
What if, on another OS version or configuration, the item 5 is another one? Your code could break. _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
