Mainmenu.xib will not open in a separate window?

I'm new to developing, and bought the book "Beginning Mac Programming: Develop with Objective-C and Cocoa". I'm only a few pages in, and I've run into a problem. I am running on Snow Leopard and Xcode 3, and when I double-click on "Mainmenu.xib", nothing appears.


Any suggestions?

Posted on Feb 2, 2012 6:34 PM

Reply
5 replies

Feb 6, 2012 9:01 AM in response to K T

I have the same problem. I'm following the instructions in order to create a HelloWorld routine.


"Using Interface Builder

Interface Builder is Apple’s graphical editor that you use to design user interfaces. It doesn’t generate source code; instead it allows you to manipulate objects directly and then save those objects in an archive called a nib file. At runtime, when a nib file is loaded the objects are unarchived and restored to the state they were in when you saved the file.


You need to add an instance of the HelloView class that you just created in Xcode to the application window.


Open Interface Builder by double-clicking the MainMenu.xib file, which you can find in the detail view for the project group.

Note: A nib file can have a .xib extension or a .nib extension. To find out more about the differences between these, see Interface Builder User Guide."


But when I diuble-click the MainMenu.xib file, it doesn't make anything. What could be the problem?

Feb 6, 2012 5:09 PM in response to orangedeveloper

Try launching Interface Builder before you double-click the xib file. If double-clicking doesn't work with Interface Builder running, try opening the xib file from Interface Builder. If the xib file doesn't open from Interface Builder, there's something wrong with your xib file. Either create a new project or add a new xib file to the project.


The previous paragraph assumes you're using Xcode 3. In Xcode 4 there is no separate Interface Builder application. In Xcode 4 selecting a xib file from the project navigator opens the xib file in Xcode's editor.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mainmenu.xib will not open in a separate window?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.