Type Alias

NSFileProtectionType

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

Declaration

typedef NSString *NSFileProtectionType;

Discussion

These values are associated with the NSFileProtectionKey key.

Topics

Working with Protection Levels

NSFileProtectionComplete

The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.

NSFileProtectionCompleteUnlessOpen

The file is stored in an encrypted format on disk after it is closed.

NSFileProtectionCompleteUntilFirstUserAuthentication

The file is stored in an encrypted format on disk and cannot be accessed until after the device has booted.

NSFileProtectionNone

The file has no special protections associated with it.

See Also

Supporting Types

NSDirectoryEnumerationOptions

Options for enumerating the contents of directories.

NSSearchPathDirectory

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

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