Missing MainMenu.nib file on Xcode

Hi, I´m really new to Xcode, i´m trying to follow the program guides and I notice that all of them say that I must have a ManiMenu.nib file in Resources group of Xcode, well, I only see MainMenu.xib, I try to create the nib file but I only can create a library file.
Also I try to delete Xcode preferences as indicated in help files but without luck, every time I create a new Cocoa project the MainMenu.nib is missing.
I´m using Xcode 3.2.1 over Mac OS 10.6.2
Any clue will be appreciated.
Thanks.

+>is really strange that if they cover 3.0 with snow leopard they did not mention this change.+
Not at all. Those books all have to be ready for print well ahead of time.
This means the code being used is most likely beta/pre-release. Lots of opportunity for mistake like this.
The only way for them to add corrections later that reflect up-to-date implementation is to reprint ($$$!!!) or, as is frequently the case, log corrections to a website when/if they find the time.
The reality is more likely that users simply start supporting each other and the workload subsequently falls to the community instead. The original authors are off the hook and get free support Nice work if you can get it.

Similar Messages

  • Why can't I find the "MainMenu.nib" file on my Macbook air?

    I'm trying to remove private browsing from my computer and I need to find the "MainMenu.nib" file... when I go to that directory it isn't there.
    Help please.

    Can someone please help me with my question?
    I'm trying to remove private browsing from my computer and I need to find the "MainMenu.nib" file... when I go to that directory it isn't there.
    I'm running Yosemite.

  • Deleting a xib or nib file from XCode

    I can't to delete a nib file from XCode. I have tried the Delete button, fn+Delete, and the Delete from the popup menu on both the Groups and Files and the File Name data view at the top of the XCode environment, and dragging the icon to Trash. It won't delete. I have had problems like this before and have been able to work it out. This time I am at a loss.
    I am using XCode 3.2.1 and SCM but since it is a nib file, it is ignored by SCM. Any help will be appreciated. Is there some special trick to deleting these files from a project?
    Thanks,
    Rob

    I'm a little surprised I received no replies to this. I was finally successful deleting the NIB out of my application. To get this to happen I needed to click on the application name in the Groups & Files and then find the NIB in the dataview under the File Name column. Then I CTRL-Clicked and selected Delete from the popup menu. Other than that I was unable to delete the file. I'm not sure why this was so difficult this time.

  • Main window ptr. from separate NIB file

    Hi All,
    This sounds like the simple kind of job a programmer would do everyday, but I haven't been able to figure it out yet.
    My NSObject app has the usual main window and MainMenu.nib file, and my user-defaults are kept in an NSWindowController subclass complete with its own separate Preferences.nib file. It does the job but I'd prefer to attach the prefs window to the main window as a sheet rather than present it as a separate pane.
    Assuming this is possible, I'd at least need a pointer to the main window to start with. How can I get the main window's pointer from within this separate nib file, please?
    Thanks in advance
    Ernie

    Thanks guys. I've figured this out now!
    Ernie

  • Windows and Nib files

    Hi
    I have three windows in my MainMenu.nib file
    #import <Cocoa/Cocoa.h>
    @interface learnWindowsAppDelegate : NSObject <NSApplicationDelegate>
    NSWindow *window;
    NSWindow *Awindow;
    NSWindow *Bwindow;
    IBOutlet NSButton *open;
    IBOutlet NSButton *close;
    @property (retain) IBOutlet NSWindow *window;
    @property (retain) IBOutlet NSWindow *Awindow;
    @property (retain) IBOutlet NSWindow *Bwindow;
    - (IBAction)Open:(id)sender;
    - (IBAction)Close:(id)sender;
    when i build and run the project windows A and B appear
    I can close then by using Open and close button - but how would i stop them appearing when you run the project
    i.e only see them if you click Open or close them via the Close button
    Regards
    Tony

    If you don't want a window to be visible initially, change the window's behavior in Interface Builder. Select the window in Interface Builder and open its identity inspector by choosing Tools > Attributes Inspector. Deselect the Visible At Launch checkbox.

  • Quicktime: Unable to load nib file: MainMenu, exiting.

    Recently updated OS X to 10.6.8
    Ever since the upgrade, my system quicktime player is completely dead.   Will not launch, displays generic icon in the application folder.
    iMac:QuickTime Player.app ryan$ pwd
    /Applications/QuickTime Player.app
    iMac:QuickTime Player.app ryan$ ls
    Contents
    iMac:QuickTime Player.app ryan$ cd C*
    iMac:Contents ryan$ ls
    Info.plist    MacOS        Resources    _CodeSignature    version.plist
    iMac:Contents ryan$ cd M*
    iMac:MacOS ryan$ ls
    QuickTime Player
    iMac:MacOS ryan$ ./Q*
    2011-12-16 13:40:05.201 QuickTime Player[30859:903] Unable to load nib file: MainMenu, exiting
    iMac:MacOS ryan$
    I've run the repair permissions utility, within the disk utility several times on the volume.
    I've run the verify disk utility on the volume - no problems reported.
    No other application issues that I've noticed; only quicktime is broken.
    Not sure what to do next.   If it gave me a clue about which "nib" file it was after I could go check it.
    iMac:English.lproj ryan$ pwd
    /Applications/QuickTime Player.app/Contents/Resources/English.lproj
    iMac:English.lproj ryan$ ls -lrt
    total 0
    -rw-r--r--  1 root  wheel  5143 Aug  8 06:39 ExportRefMovieForWebTemplate.html
    -rw-r--r--  1 root  wheel   350 Aug  8 06:39 SaveForWebiFrameTemplate.html
    drwxr-xr-x  2 root  wheel   102 Aug  8 06:41 MGRemoteHUDView.nib
    iMac:English.lproj ryan$  cd *nib
    iMac:MGRemoteHUDView.nib ryan$ ls -lrt
    total 0
    -rw-r--r--  1 root  wheel  4208 Aug  8 06:39 keyedobjects.nib
    Am I missing files in that directory structure??

    Did you repair permissions & restart after the
    update?
    I tried repairing the permissions and QuickTime still failed to launch; however, I didn't think to restart the machine. But then I fired up TechTool and it found problems with the volume structure, repaired it, and all is good now. So I'm not sure if TechTool fixed the problem or if it was eventually restarting after repairing the permissions.

  • Error report form iTunes Store: Missing Nib File

    After having uploaded the .zip-file to the iTunes Store (update of an existing app), I got the following error-report from the iTunes store: Missing Nib File - The referenced nib file "MainWindow.nib" was not found in the application bundle. Is it possible that this error occurred while creating the app in the Adobe app builder or where do I have to look for this error? The first uploading of the original app worked without an error. What do you recommend me?
    Thank you very much for an answer.
    Ueli Mattenberger, VMA Media AG, Switzerland

    See http://forums.adobe.com/thread/1277293 and http://status.adobedps.com/ for information on this issue.
    Neil

  • Xcode 3/Interface Builder - Adding classes to NIB file doesn't work

    I'm attempting to learn Objective-C and Cocoa GUI through Apple's "Currency Convertor" tutorial. I'm currently at the "Add the ConverterController Class to Your Nib File" step, and I add ConverterController.h to the Interface Builder project (both by Read Class Files and dragging) and... nothing happens. The tutorial clearly states that the class should appear as a new icon in the MainMenu.nib window. I've tried researching this problem, and it appears to be quite common, however every fix isn't really a fix at all. They all involve using the Identity Inspector for something, which appears very complicated, and is otherwise uncovered in the tutorial. It occurs to me that anyone knowing enough to be able to use this fix wouldn't be reading this tutorial, thus making such answers moot. Any help anyone could provide on this issue would be appreciated.

    The tutorial you linked to should work fine except that they've just got the illustration (Figure 5-3) in the wrong place.
    The placement of that illustration implies that you should see the instance of your class in the MainMenu.nib window right after doing step 2 (where you read your class file). But that's not really true. In reality it's step 3 that gets you the blue box in the MainMenu.nib window and steps 4 and 5 that will transform it from an "Object" into a "ConverterController". Steps 3, 4 and 5 are exactly what Thomvis suggested that you do earlier.
    Steve

  • Invalid Binary: "Missing .Nib File" ?

    Dear Adobe Community,
    I have a big problem... When finally I've uploaded the Binary file of my App to iTunnes Conect, I've received several emails like this from Apple after several attempts:
    "We have discovered one or more issues with your recent delivery for "Name of the App". To process your delivery, the following issues must be corrected:
    The binary being analyzed must be an executable: /tmp/mz_4718812371818442247dir/nameoftheapp.zip/viewer.app/viewer
    Missing Nib File - The referenced nib file 'MainWindow.nib' was not found in the application bundle.
    Once these issues have been corrected, go to the Version Details page and click "Ready to Upload Binary." Continue through the submission process until the app status is "Waiting for Upload." You can then deliver the corrected binary."
    I'm going crazy with this. It is the first time that something similar is happening to me, please, someone have the solution for this problem?
    Really appreciate your help and any suggestion from Abode team!
    Best,
    E.

    Just to echo this - we have the same problem. We are going to try renaming the file and resubmitting but the concern must be problems further down the line.
    I am concerned about the process of unzipping and rezipping the file as there may be issues with encryption?
    In addition there are a number of other *~ipad.nib files included in the app build which we have not renamed - however it seems logical that they may also be affected.
    Grateful as the other posters have commented for an update on this issue as soon as you have it.
    Thanks
    UPDATE 12.20pm BST
    We unpacked the file, renamed the file in question, rezipped and sent it off again. This time no error email yet from Apple, and status has changed to Waiting For Review. Seems a bit too easy though....! Hard to believe we won't get another error back in due course, but I guess you never know.
    Message was edited by: tortoise816 to update our situation.

  • How can I switch to a different Nib file with a button

    Hi there Im working on a Xcode application for IOS and I must admit im kinda new to Objective C. This specific application requires me to switch between different nib files. I am having quite a difficult time trying to figure this out on my own so some help would be appreciated. I have got the button linked with an
    - (IBAction) but i can't quite get the coding to get the buttton to open the next application or nib file.
    Thanks ~Cal~

    What i want is that it opens an application menu with several buttons, and then you press one and it opens a new window full of buttons
    and i want it to be a mac osx app:)

  • Do objects created in MainMenu.nib ever get dealloc'ed?

    If my MainMenu.nib contains an instance of one of my classes... for example a "MyController" object... and I give that class a dealloc method... what, if anything, would cause dealloc to get called?
    For example, it seems like when the NSApp is quitting perhaps it ought to dealloc the stuff it loaded from MainMenu.nib, but that doesn't seem to be happening. And, since my "MyController" object alloc's and init's some other objects when it does it's "awakeFromNib" it seems like it ought to release those objects when it gets dealloc'ed.
    Am I missing something, or forgetting to implement something. Or am I just overcomplicating something I really don't need to worry about?
    Steve
    20 iMac G5   Mac OS X (10.4.3)  
    20 iMac G5   Mac OS X (10.4.3)  

    Have you read this thread at CocoaDev? I think you will find that the objects in MyDocument.nib in a document-based app do go thru dealloc, but I don't see how it much matters if your non-document-based app is terminating. You can use delegate methods like windowWillClose or applicationWillTerminate in your controller class to do clean up duty in a single-window app. I still have a lot to learn about NSWindowController myself.

  • Nib file not found

    Hello,
    I'm trying to unbury an old code from 2006 and make it run on a Mac OS X 10.8 using Xcode 4.
    This code was originally created on Mac OS X 10.4 using Xcode 2.x. In a Mac OSX 10.4 virtual machine, I managed to make the program work.
    Let's come back to my 10.8 machine. So I created a new "command line project" in Xcode 4 in which I have imported all the files. So I manage to compile the code (I just needed to comment a part which is a doAbout(1000) and which I think is related to the interface, so I might loose one optional feature) and make it "run". My current problem is that the main program is not able to find a nib.
    To be precise, this code :
        // Create a Nib reference, passing the name of the nib file (without the .nib extension).
        // CreateNibReference only searches into the application bundle.
        err = CreateNibReference( CFSTR("main"), &sNibRef );
        require_noerr( err, CantGetNibRef );
    throw this:
    2014-08-01 14:12:22.563 rework[410:303] DebugAssert: Third Party Client: err == 0  [-10960] CantGetNibRef [/Users/adminr/Desktop/rework/rework/main.c:1164]
    however, I have a main.nib in my English.lproj that I included in my project.
    Here is my project tree:
    In order to make the program run I had to set "base SDK" as "OS X 10.7" (because of a PMPrintContext). From what I've understood so far, even if Xcode 4 cannot edit .nib files it can compile a project which has a .nib, right ?
    And before you ask, I already tried to clean and rerun the project.
    Thanks for your attention,

    See http://forums.adobe.com/thread/1277293 and http://status.adobedps.com/ for information on this issue.
    Neil

  • QuickTime fails to launch: "Unable to load nib file"

    QuickTime has decided today that it will no longer launch. When I look at the message generated in Console it says:
    "QuickTime Player[300] Unable to load nib file: MainMenu, exiting"
    This has been happening since I updated my copy of Fetch. I have tried reinstalling QuickTime but it hasn't helped.
    I am running QuickTime Pro 7.1.6 with DivX and Flip4Mac, both of which were installed some time ago and everything has been running fine until this morning.
    Any ideas what I should do next?
    Thanks.
    iBook G3   Mac OS X (10.3.9)   QuickTime Pro 7.1.6 with DivX and Flip4Mac 2.1.1.70

    Did you repair permissions & restart after the
    update?
    I tried repairing the permissions and QuickTime still failed to launch; however, I didn't think to restart the machine. But then I fired up TechTool and it found problems with the volume structure, repaired it, and all is good now. So I'm not sure if TechTool fixed the problem or if it was eventually restarting after repairing the permissions.

  • Safari unable to load nib file?

    I have a user who when they click to start Safari the icon bounces once and does not start.
    I found the crash log that says this,
    5/13/14 2:26:32 PM
    com.apple.launchd[68]
    ([0x0-0x29029].com.apple.Safari[172]) Exited with exit code: 1
    5/13/14 2:26:52 PM
    Safari[174]
    Unable to load nib file: MainMenu, exiting
    5/13/14 2:26:52 PM
    Safari[174]
    Unable to load nib file: MainMenu, exiting
    5/13/14 2:26:52 PM
    com.apple.launchd[68]
    ([0x0-0x2a02a].com.apple.Safari[174]) Exited with exit code: 1
    5/13/14 2:26:52 PM
    com.apple.launchd[68]
    ([0x0-0x2a02a].com.apple.Safari[174]) Exited with exit code: 1
    5/13/14 2:27:37 PM
    com.apple.launchd[68]
    (0x10a1d0.Locum[180]) Exited: Terminated
    I dont know what this means or how to fix it.
    We had a power outage when the user was in Safari.
    OSX 10.5.8
    Safari 5.0.6
    Thanks for your help
    SS

    They need to reinstall Safari : Safari 5.0.6 for Leopard
    although other applications & OS components may also have been affected.

  • Problems loading nib files after class is split into a static library.

    I've recently split a project so that the common re-usable controls are in their own class library. My original application project now references these using a cross project reference.
    However, since I have split the projects up, my original project crashes when it loads main.xib because it cannot find one of the custom classes which is defined in the library project.
    When I first split up the projects, I noticed that there were problems with the nib files not being able to find the IB outlets of the custom classes, but I managed to get around these by going importing the relevant library class files manually (File > Read Class Files…).
    I have made sure that all of the nib files compile without warning, so as far as I can tell, Interface Builder is able to read the necessary class headers, but when I try to run the app, it crashes saying that there is an unknown class in the Interface Builder file and that the class is not coding compliant.
    Are there any steps I've missed or advice on how to troubleshoot this?

    I did a bit of digging. The reason why this wasn't working is because the class in question was referenced by the nib files, but not in code. Therefore, while the code compiled and there were no warnings with the nib files, the linker was not linking the classes because no code used them directly.
    This can be fixed by going to the Project Settings, and on the Build tab, underneath the Linking heading, adding -ObjC to the Other Linker Flags section.

Maybe you are looking for