I have several toolbars that use the custom controls in toolbar technique to 
embed buttons and other controls in the toolbar. It’s basically just reusing 
most of your ToolBar buttons example. The problem I’m having is when the window 
is too small to hold the entire toolbar and changes some into menu items to 
popup on the right hand side. 

If I don’t change the NSCustomToolbarItemMBS.view to the NSButtonMBS then the 
menus work and the event falls through to the NSCUstomToolbarItemMBS’s action 
event as it does in the simpler toolbar example. Once I set the .view of the 
toolbaritem though the menu seems out of my control and no longer sends my 
toolbarItem class it’s event.

I attempted to create an NSMenuItemMBS subclass and assign that to the 
menuFormRepresentation property of the toolitem and that works as far as being 
able to enable and disable the menu as well as change it’s title, but the event 
still doesn’t filter down to the new class. The Action event of the 
NSMenuItemMBS subclass is never called.

is it just a problem with my understanding of how to catch those events?


Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org                
http://MacHomeAutomation.com




_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to