Use the delegate method application:
instead.
SDK
- macOS 10.3–10.4Deprecated
Framework
- App
Kit
Declaration
- (void)application:(NSApplication *)sender printFiles:(NSArray<NSString *> *)filenames;
Parameters
sender
Requests application to print file.
filenames
The name of the file to print.
Discussion
Identical to application:
except that the receiver prints multiple files corresponding to the file names in the filenames
array.
Delegates should invoke the reply
method upon success or failure, or when the user cancels the operation.