Instance Method

activateFileViewerSelectingURLs:

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

Declaration

- (void)activateFileViewerSelectingURLs:(NSArray<NSURL *> *)fileURLs;

Parameters

fileURLs

The files to select and display in the Finder.

Discussion

It is safe to call this method from any thread of your app.

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
- selectFile:inFileViewerRootedAtPath:

Selects the file specified by fullPath.

NSWorkspaceFileOperationName

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

Deprecated
File Types

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