Instance Method

application(_:openFiles:)

Tells the delegate to open multiple files.

Declaration

optional func application(_ sender: NSApplication, openFiles filenames: [String])

Parameters

sender

The application object associated with the delegate.

filenames

An array of NSString objects containing the names of the files to open..

Discussion

Identical to application(_:openFile:) except that the receiver opens multiple files corresponding to the file names in the filenames array. Delegates should invoke the reply(toOpenOrPrint:) method upon success or failure, or when the user cancels the operation.

See Also

Opening Files

func application(NSApplication, openFile: String) -> Bool

Tells the delegate to open a single file.

func application(Any, openFileWithoutUI: String) -> Bool

Tells the delegate to open a file programmatically.

func application(NSApplication, openTempFile: String) -> Bool

Tells the delegate to open a temporary file.

func applicationOpenUntitledFile(NSApplication) -> Bool

Tells the delegate to open an untitled file.

func applicationShouldOpenUntitledFile(NSApplication) -> Bool

Invoked immediately before opening an untitled file.