Enumeration

NSSearchPathDomainMask

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

Declaration

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

Overview

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

Topics

Specifying Search Path Domains

NSUserDomainMask

The user’s home directory—the place to install user’s personal items (~).

NSLocalDomainMask

The place to install items available to everyone on this machine.

NSNetworkDomainMask

The place to install items available on the network (/Network).

NSSystemDomainMask

A directory for system files provided by Apple (/System) .

NSAllDomainsMask

All domains.

See Also

Supporting Types

NSDirectoryEnumerationOptions

Options for enumerating the contents of directories.

NSSearchPathDirectory

The location of 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software