All, I have been banging my head against a wall. I have a menubar app that I made. works well. but when I try to add an image (PNG, 16x16 or PNG, 32x32) to be an item in the menu, the app says that it adds it (no errors, and I can find the reference to the NSMenuItemMBS item). but it is never visible on the menu. I know I am doing something stupid.
here are two versions of what I have tried. version 1: tmpNSMIBS = new NSMenuItemMBS tmpNSIVMBS = new NSImageViewMBS( 0,0,unknown_16.Width, unknown_16.Height ) tmpNSIVMBS.Image = new NSImageMBS( unknown_16 ) tmpNSMIBS.view = tmpNSIVMBS app._MenuItemsStatic.Append tmpNSMIBS app._mbsmMain.addItem app._MenuItemsStatic( app._MenuItemsStatic.Ubound ) version 2: tmpNSMIBS = new NSMenuItemMBS tmpNSMIBS.Enabled=true tmpNSMIBS.tag=203 tmpNSMIBS.Image= new NSImageMBS( unknown_16,unknown_16.Mask ) app._MenuItemsStatic.Append tmpNSMIBS app._mbsmMain.addItem app._MenuItemsStatic( app._MenuItemsStatic.Ubound ) what am I doing wrong? thanks sb _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
