Study a Mac application and you will find that the. app extension represents not a file, but a directory. This directory is the application's program directory. In this directory there is an organized structure that contains the resources required for the application to run, the list of application-related attributes, and the executable binaries of the application. The binary executable of the iphone SDK Builder and save the files it needs in the directory structure of the program. Therefore, in order to build a complete application, developers need to tell the Xcode IDE which supporting files need to be installed. On the iphone, the application executes in the sandbox. A sandbox is a restricted environment that prohibits applications from accessing unauthorized resources. One function of the sandbox is to disallow any read and write operations outside the home directory specified by the application. Everything needed to run the program must be contained within the body's directory structure. In addition, the application does not know its installation location, and each time a unique identity is added to your application path. An application can only find a path by nshomedirectory such a function or a class such as NSBundle.
Anatomy of the iphone app