Location of main nib file for applications?

Discussion in 'Mac Programming' started by dmmcintyre3, May 14, 2009.

  1. dmmcintyre3 macrumors 68020

    Joined:
    Mar 4, 2007
    #1
    I cannot find the main nib file for any applications. I can find everything but say in system preferences the window that opens when you start system preferences.
     
  2. grimreaper1377 macrumors regular

    Joined:
    Oct 20, 2007
    #2
    Right click on the application, click "Show Package Contents", --> Contents, --> Resources --> English.lproj
     
  3. dmmcintyre3 thread starter macrumors 68020

    Joined:
    Mar 4, 2007
    #3
    I did that and the main window was not there.
     
  4. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #4
    The nib is often called "MainMenu.nib" and has the menu bar and app object and the primary window (if there is one).
     
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    There is no requirement for the "main window" to be in a nib at all: it could very easily be created programatically at run time.
     
  6. foidulus macrumors 6502a

    Joined:
    Jan 15, 2007
    #6
    Find all the NIB files in an app(in this case, System preferences):

    Open up terminal and type:

    find /Applications/System\ Preferences.app/Contents/Resources/English.lproj/*.nib
     

Share This Page