Instance Method

application:printFiles:

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:printFile: except that the receiver prints multiple files corresponding to the file names in the filenames array.

Delegates should invoke the replyToOpenOrPrint: method upon success or failure, or when the user cancels the operation.

See Also

Managing User Attention Requests

- requestUserAttention:

Starts a user attention request.

NSRequestUserAttentionType

These constants specify the level of severity of a user attention request and are used by cancelUserAttentionRequest: and requestUserAttention:.

- cancelUserAttentionRequest:

Cancels a previous user attention request.

- replyToOpenOrPrint:

Handles errors that might occur when the user attempts to open or print files.

NSApplicationDelegateReply

Constants that indicate whether a copy or print operation was successful, was canceled, or failed.