Re: add menu
Re: add menu
- Subject: Re: add menu
- From: Jonathan Hess <email@hidden>
- Date: Wed, 12 Dec 2007 18:12:37 -0800
Hey Claus -
Menus are composed of menu items, and a menu item can have a sub-menu.
So, if you want to load a menu into the main menu, you have to add a
menu item to the main menu that has your menu as its submenu.
Jon Hess
On Dec 12, 2007, at 7:01 AM, Claus Atzenbeck wrote:
Hi all:
I created an NSMenu including several menu items in one NIB file (not
MainMenu.nib) and would like to add it to [NSApp mainMenu]. However, I
cannot find any method which would allow me to do something like:
[[NSApp mainMenu] addMenu:theMenu
withTitle:@"New Menu"
atIndex:3];
How can I load a complete menu entry with all menu items into the main
menu?
Thanks,
/CA
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >add menu (From: Claus Atzenbeck <email@hidden>) |