Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xmax

macrumors member
Original poster
Jul 3, 2008
33
0
Hello,

I was customizing Main Menu for my application and some how i deleted edit item from Main Menu. Now my application needs to put this Edit Menu in Main menu. I am not able to drag NSMenu directly to main menu from Interface builder.

I am not able to insert this edit menu programmatically.
So, how can i add "Edit" menu item in Main menu.


Thanks.
 
You should be able to drag the "Edit Menu Item" (or any of the other menu items) directly onto the menu wherever you want it to be positioned. However, after a quick check, this doesn't work if you have any of the pull down menus in the menu you are editing currently open.
 
Yeah, I think the naming is a little confusing. "Menu" refers to the entire thing (all individual drop-down menus together), and not an individual drop-down list as you might think — each of these is actually a "Menu Item", the same as each individual line in the list. So as Thomas says, drag a Menu Item onto the menu bar for a new drop-down list ("File", "Edit", etc.).
 
Yeah, I did it. Naming was confusing me.

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.