Type Alias

NSWorkspaceFileOperationName

These constants specify different types of file operations used by performFileOperation:source:destination:files:tag:.

Declaration

typedef NSString *NSWorkspaceFileOperationName;

Topics

Type Properties

NSWorkspaceCompressOperation

Compress file. This operation always returns an error.

NSWorkspaceCopyOperation

Copy file to destination. Behaves the same as copyPath:toPath:handler:.

NSWorkspaceDecompressOperation

Decompress file. This operation always returns an error.

NSWorkspaceDecryptOperation

Decrypt file. This operation always returns an error.

NSWorkspaceDestroyOperation

Destroy file. Behaves the same as removeFileAtPath:handler:.

NSWorkspaceDuplicateOperation

Duplicate file in source directory.

NSWorkspaceEncryptOperation

Encrypt file. This operation always returns an error.

NSWorkspaceLinkOperation

Create hard link to file in destination. Behaves the same as linkPath:toPath:handler:.

NSWorkspaceMoveOperation

Move file to destination. Behaves the same as movePath:toPath:handler:.

NSWorkspaceRecycleOperation

Move file to trash. The file is moved to the trash folder on the volume containing the file using the same semantics as NSWorkspaceMoveOperation. If a file with the same name currently exists in the trash folder, the new file is renamed. If no trash folder exists on the volume containing the file, the operation fails.

See Also

Types

NSWorkspaceLaunchOptions

Constants specifying how you want to launch an app

NSWorkspaceLaunchConfigurationKey

The following keys can be used in the configuration dictionary of the launchApplicationAtURL:options:configuration:error: method. Each key is optional, and if omitted, default behavior is applied.

Deprecated