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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access