Enumeration

NSWorkspaceAuthorizationType

The types of privileged file operations that can be authorized by the user.

Declaration

typedef enum NSWorkspaceAuthorizationType : NSInteger {
    ...
} NSWorkspaceAuthorizationType;

Overview

To enable your app to prompt the user for these file permissions, you must have a Privileged File Operation entitlement. If you have an app on the Mac App Store or plan to submit your app for review, you can request this entitlement.

Topics

Types of Authorization

NSWorkspaceAuthorizationTypeCreateSymbolicLink

Authorization for the app to create a symoblic link.

NSWorkspaceAuthorizationTypeReplaceFile

Authorization for the app to perform an atomic file write without changing the target file's permissions.

NSWorkspaceAuthorizationTypeSetAttributes

Authorization for the app to change specific file attributes.

See Also

Performing Privileged Operations

- requestAuthorizationOfType:completionHandler:

Requests authorization to perform a privileged file operation.

NSWorkspaceAuthorization

The authorization granted to the app by the user.