Finding Standard Directories
Frequently, you will construct a path or URL by appending your application’s specific path components to another well-known location, such as the user’s home directory, or the Application Support directory.
The functions NSHomeDirectory() and NSTemporaryDirectory() return paths to the home directory and temporary directory, respectively. There are also lookup functions and methods that give you other directories of interest. These share two configuration parameters.
The first is the search domain. There are a number of different locations where directories could be. For example, there are a number of “Library” directories: in the user’s home, in /Library, in /Network/Library, and /System/Library. When searching ...