I’m trying to add a ContainerControl to a NSMenuItemMBS and it looks that is not working.
Is this possible?
Here is what I’m trying to do:
Dim aMenuItemMBS As New myNSMenuItemMBS
aMenuItemMBS.CreateMenuItem("Options")
aMenuItemMBS.Enabled=True
aMenuItemMBS.Tag=Integer(MenuItemsTag.view_options)
Dim aCC As New myContainerControl
aMenuItemMBS.view = aCC.NSViewMBS
mMenuItems.Append(aMenuItemMBS) // so RB doesn't free the object.
Menu.AddItem(aMenuItemMBS)
I don’t think creating a new instance of a container control sets everything up. Try putting the container control onto a window and use the view from that instance.