application(_:openFiles:)
Tells the delegate to open the specified files.
Declaration
@MainActor optional func application(_ sender: NSApplication, openFiles filenames: [String])Parameters
- sender:
The application object associated with the delegate.
- filenames:
An array of
NSStringobjects 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.