Enumeration

NSSearchPathDirectory

The location of significant directories.

Declaration

typedef enum NSSearchPathDirectory : NSUInteger {
    ...
} NSSearchPathDirectory;

Overview

These constants are used by the URLsForDirectory:inDomains: and URLForDirectory:inDomain:appropriateForURL:create:error: methods of FileManager.

Topics

Directory Locations

NSApplicationDirectory

Supported applications (/Applications).

NSDemoApplicationDirectory

Unsupported applications and demonstration versions.

NSDeveloperApplicationDirectory

Developer applications (/Developer/Applications).

NSAdminApplicationDirectory

System and network administration applications.

NSLibraryDirectory

Various user-visible documentation, support, and configuration files (/Library).

NSDeveloperDirectory

Developer resources (/Developer).

NSUserDirectory

User home directories (/Users).

NSDocumentDirectory

Document directory.

NSCoreServiceDirectory

Core services (System/Library/CoreServices).

NSAutosavedInformationDirectory

The user’s autosaved documents (Library/Autosave Information).

NSDesktopDirectory

The user’s desktop directory.

NSCachesDirectory

Discardable cache files (Library/Caches).

NSApplicationSupportDirectory

Application support files (Library/Application Support).

NSDownloadsDirectory

The user’s downloads directory.

NSInputMethodsDirectory

Input Methods (Library/Input Methods).

NSMoviesDirectory

The user’s Movies directory (~/Movies).

NSMusicDirectory

The user’s Music directory (~/Music).

NSPicturesDirectory

The user’s Pictures directory (~/Pictures).

NSPrinterDescriptionDirectory

The system’s PPDs directory (Library/Printers/PPDs).

NSSharedPublicDirectory

The user’s Public sharing directory (~/Public).

NSPreferencePanesDirectory

The PreferencePanes directory for use with System Preferences (Library/PreferencePanes).

NSApplicationScriptsDirectory

The user scripts folder for the calling application (~/Library/Application Scripts/<code-signing-id>.

NSItemReplacementDirectory

The constant used to create a temporary directory.

NSAllApplicationsDirectory

All directories where applications can be stored.

NSAllLibrariesDirectory

All directories where resources can be stored.

NSTrashDirectory

The trash directory.

See Also

Supporting Types

NSDirectoryEnumerationOptions

Options for enumerating the contents of directories.

NSSearchPathDomainMask

Domain constants specifying base locations to use when you search for significant directories.

NSFileAttributeKey

Keys in dictionaries used to get and set file attributes.

NSFileAttributeType

Values representing a file’s type attribute.

NSFileProtectionType

Protection level values that can be associated with a file attribute key.

NSURLFileProtectionType

Protection level values that can be associated with a URL resource key.