Creates a print operation and returns it if successful.
- macOS 10.4+
The print settings dictionary to use.
On return, if the print operation could not be created, a pointer to an error object that encapsulates the reason it could not be created.
The print operation, or
nil if unsuccessful.
The print operation can be run to print the document’s current contents. The
NSPrint attributes in the passed-in