Am 08.04.2013 um 20:38 schrieb Marnaud <[email protected]>: >> 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.
I'll add ActionSelector to NSMenuItemMBS so you can query the selector name. THis is more unlikely to change than the title or the index. The selector name is: "toggleUsingSmallToolbarIcons:" I also add two methods to find it easier: itemWithSelector(selector as string) as NSMenuItemMBS indexOfItemWithSelector(selector as string) as integer Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
