Name
NSPrintOperation — Mac OS X 10.0
Synopsis
Instances of this class work with NSView
and
NSPrintInfo
objects to coordinate the generation
of EPS or PDF data suitable for output to a printer device. In
Cocoa’s printing system,
NSPrintInfo
objects provide information about
output settings such as paper size and margin widths, while
NSView
objects are responsible for creating the
actual output with the same standard drawing APIs used for onscreen
drawing.
|
@interface NSPrintOperation : NSObject
|
// Accessor Methods
|
- (void)setPageOrder:(NSPrintingPageOrder)order; |
- (NSPrintingPageOrder)pageOrder;
|
- (void)setCanSpawnSeparateThread:(BOOL)canSpawnSeparateThread; |
- (BOOL)canSpawnSeparateThread;
|
- (void)setJobStyleHint:(NSString *)hint; |
- (NSString *)jobStyleHint;
|
- (void)setPrintInfo:(NSPrintInfo *)aPrintInfo; |
- (NSPrintInfo *)printInfo;
|
- (void)setAccessoryView:(NSView *)aView; |
- (NSView *)accessoryView;
|
- (void)setPrintPanel:(NSPrintPanel *)panel; |
- (NSPrintPanel *)printPanel;
|
- (void)setShowPanels:(BOOL)flag; |
- (BOOL)showPanels;
|
// Class Methods
|
+ (NSPrintOperation *)EPSOperationWithView:(NSView *)aView insideRect:(NSRect)rect toData:(NSMutableData *)data; |
+ (NSPrintOperation *)EPSOperationWithView:(NSView *)aView insideRect:(NSRect)rect toData:(NSMutableData *)data printInfo:(NSPrintInfo *)aPrintInfo; |
+ (NSPrintOperation *)EPSOperationWithView ... |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.