application(_:openTempFile:)
Returns a Boolean value that indicates if the app opens the specified temporary file.
Declaration
@MainActor optional func application(_ sender: NSApplication, openTempFile filename: String) -> BoolParameters
- sender:
The application object associated with the delegate.
- filename:
The name of the temporary file to open.
Return Value
true if the file was successfully opened or false if it was not.
Discussion
Sent directly by theApplication to the delegate. The method should attempt to open the file filename, returning true if the file is successfully opened, and false otherwise.
By design, a file opened through this method is assumed to be temporary—it’s the application’s responsibility to remove the file at the appropriate time.