Skip navigation.
 
mlPreview of NSView subclass sent to printer
FROM : Fabio Lossotti
DATE : Wed Dec 18 14:30:22 2002

In my customized implementation of printing a NSView subclass, the
"Preview" button always sends the job to the printer rather than to
Preview (or some other viewer).

In order to print/preview the NSView subclass, I do some custom stuff
prepping the view to be printed/previewed, then create the
NSPrintOperation and run it.  The NSPrintInfo object that is used in
instantiating the NSPrintOperation instance has the following key/value
pair:
        NSJobDisposition = NSPrintPreviewJob
which would imply that -[NSPrintOperation runOperation] should send the
job to Preview, not the printer.

Any ideas what may be causing the job to go to the printer, not to
Preview.app?  (Below is the entire NSPrintInfo dictionary).

Thanks, FL

{
  NSBottomMargin = 90;
    NSCopies = 1;
    NSFirstPage = 1;
    NSHorizonalPagination = 2;
    NSHorizontallyCentered = 1;
    NSJobDisposition = NSPrintPreviewJob;
    NSLastPage = 1;
    NSLeftMargin = 72;
    NSMustCollate = 1;
    NSOrientation = 0;
    NSPaperName = "na-letter";
    NSPaperSize = <44190000 44460000 >;
    NSPrintAllPages = 0;
    NSPrinter = {
    "Device Description" = {NSDeviceIsPrinter = YES; };
    "Language Level" = 0;
    Name = "Stylus COLOR 860";
    Type = "EPSON Stylus COLOR 860";
};
    NSRightMargin = 72;
    NSSavePath = "";
    NSScalingFactor = 1;
    NSTopMargin = 90;
    NSVerticalPagination = 0;
    NSVerticallyCentered = 1;
}




__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Related mailsAuthorDate
No related mails found.