some Mac apps are directories?!

Discussion in 'Mac Apps and Mac App Store' started by ffej2ffej, Jan 28, 2009.

  1. ffej2ffej macrumors newbie

    ffej2ffej

    Joined:
    Jan 27, 2009
    Location:
    Southern California
    #1
    I just started using Xcode 3 and I noticed some of my apps had the "d" (directory) attribute. At first I thought it was a mistake until I did some further research.
    It seems that some apps really ARE directories, the directory contains all the files the program needs to run. When you view one of these apps in Finder, it will appear as a single file and will run when you double click on it or tell it to open from the context menu. However, when you view it from the terminal window (the command is ls -la) it will have the "d" attribute and you can change directories (the command is cd directoryname) and see all the parts of that particular program. In the case of Xcode Cocoa applications, it has the .nib file that you made in Interface Builder plus some other stuff.
     
  2. MadGoat macrumors 65816

    MadGoat

    Joined:
    Jul 30, 2007
    Location:
    Canada
    #2
    Most. if not all apps are "directories". It's a way of packaging all the dependencies and all that fun stuff into a simple package.

    you can also right click on applications and show the contents of the package.
     

Share This Page