Sent when the user starts up the application on the command line with the
- macOS 10.0+
The application object that is handling the printing.
The name of the file to print.
YES if the file was successfully printed or
NO if it was not.
This message is sent directly by
the to the delegate. The application terminates (using the
terminate: method) after this method returns.
If at all possible, this method should print the file without displaying the user interface. For example, if you pass the
-NSPrint option to the TextEdit application, TextEdit assumes you want to print the entire contents of the specified file. However, if the application opens more complex documents, you may want to display a panel that lets the user choose exactly what they want to print.