4

Inside the MainMenu.xib I deleted the default Main Menu that automatically gives you the application menu (along with the File/Edit/Format/View/Window/Help menus).

What are the steps I need to take to add this back into my application?

1 Answer 1

6

I would create a new application then copy just the Main Menu back into your MainMenu.xib

Sign up to request clarification or add additional context in comments.

7 Comments

Thanks, this worked. I'd still like to understand the 'magic' that relates this Menu to the application as it's main menu.
@zadam: There's no magic. It's just a complete main menu that Apple created for you and supplied in the nib in each application template. That menu is the main menu because the application's mainMenu outlet is hooked up to it.
- Peter: where is the application's mainMenu outlet hooked up to it?
@zadam: In the MainMenu nib, where the main menu resides and the application is the File's Owner. Right-click on the main menu and you should see the application's mainMenu as a referencing outlet.
@PeterHosey I expected this to be the case, but no "mainMenu" outlet appears in Interface Builder for either File's Owner or the Application instance. Only delegate and dockMenu appear.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.