Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSPrintOperationMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa Printing MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: An NSPrintOperation object controls operations that generate Encapsulated PostScript (EPS) code, Portable Document Format (PDF) code, or print jobs.
Notes:
An NSPrintOperation object works in conjunction with two other objects: an NSPrintInfo object, which specifies how the code should be generated, and an NSView object, which generates the actual code.

It is important to note that the majority of methods in NSPrintOperation copy the instance of NSPrintInfo passed into them. Future changes to that print info are not reflected in the print info retained by the current NSPrintOperation object. All changes should be made to the print info before passing to the methods of this class.

Feedback, Comments & Corrections

Page Order Constants

Constant Value Description
NSAscendingPageOrder 1 Ascending (back to front) page order.
NSDescendingPageOrder -1 Descending (front to back) page order.
NSSpecialPageOrder 0 The spooler does not rearrange pages—they are printed in the order received by the spooler.
NSUnknownPageOrder 2 No page order specified.

Print Quality Constants

Constant Value Description
NSPrintRenderingQualityBest 0 Renders the printing at the best possible quality, regardless of speed.
Available in OS X v10.7 and later.
NSPrintRenderingQualityResponsive 1 Sacrifices the least possible amount of rendering quality for speed to maintain a responsive user interface. This option should be used only after establishing that best quality rendering does indeed make the user interface unresponsive.
Available in OS X v10.7 and later.

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS MacCocoa Plugin.


NSPrintInfoMBS   -   NSPrintPanelMBS




Links
MBS Xojo PDF Plugins