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

Manipulating Files

duplicateURLs:completionHandler:

Duplicates the specified URLS asynchronously in the same manner as the Finder.

recycleURLs:completionHandler:

Moves the specified URLs to the trash in the same manner as the Finder.

performFileOperation:source:destination:files:tag:

Performs a file operation on a set of files in a particular directory.

Deprecated
activateFileViewerSelectingURLs:

Activates the Finder, and opens one or more windows selecting the specified files.

selectFile:inFileViewerRootedAtPath:

Selects the file specified by fullPath.

File Types

These constants specify different types of files returned by the getInfoForFile:application:type: method.