Cocoa tutorial

Discussion in 'Mac Programming' started by darksider, Feb 17, 2007.

  1. darksider macrumors member

    Joined:
    Sep 12, 2006
    #1
    I was reading Apple's Cocoa tutorial and found some strange(?) thing:

    "Double-click the nib file. This opens the nib file in Interface Builder."
    http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/chapter03/chapter_3_section_3.html#//apple_ref/doc/uid/20002051-TPXREF135

    But... when I double-click on the nib file, it is opened in Finder, not in Interface Builder.

    Why is that so? Ok, its not so hard to open it directly in the Interface Builder, but anyway, I dont understand. Thanks for any suggestions
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Get Info the file in Finder, and you can change the default app that it opens with under the "Opens with" section.

    Are you sure you have the Xcode developer tools installed?
     
  3. darksider thread starter macrumors member

    Joined:
    Sep 12, 2006
    #3
    MainMenu.nib is actually folder, so in finder you cant change what app should open it.
    And yes, i try to click on MainMenu in Xcode, everything is installed.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Well I can :)
    View attachment 68608

    Are you running 10.4?
     
  5. darksider thread starter macrumors member

    Joined:
    Sep 12, 2006
    #5
    Wow...
    Yes, I do, but.... i cant see it there.... :confused:
    I downloaded Xcode today, its the newest version, hm....
     

    Attached Files:

  6. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #6
    Well can you open the mainmenu.nib file from Interface Builder's File > Open?
     
  7. darksider thread starter macrumors member

    Joined:
    Sep 12, 2006
    #7
    Yes, as I said, its possible, I was just wondering why I cant just click on that "file" (folder, whatever :) )
     
  8. darksider thread starter macrumors member

    Joined:
    Sep 12, 2006
    #8
    so, finally, its solved...
    I looked at the INFO of nib files of MainMenu.nib folder
    And there I found the option what app should open it. After that change, everything is OK

    But hey, thx for help :)
     

Share This Page