How to implement a preview view for printing
How to implement a preview view for printing
- Subject: How to implement a preview view for printing
- From: Andreas Känner <email@hidden>
- Date: Fri, 3 Mar 2006 11:16:50 +0100
Hi all,
I would like to implement my own preview view for printing. I can
simulate a print operation by calling the relevant NSView methods in
the same way NSPrintOperation does. But NSView can draw different
things depending whether it is drawing to a screen or not. The view
can ask the current graphics context with [NSGraphicsContext
currentContextDrawingToScreen] if it is drawing to screen. A return
value of NO means "draw for printing".
The problem is, that I want to tell the view that it is not drawing
to screen, but I can't find something like [NSGraphicsContext
setCurrentContextDrawingToScreen:NO].
Is there a way to fake this?
How are others doing this?
Thanks in Advance.
Andreas Känner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden