• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to implement a preview view for printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to implement a preview view for printing
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: Replicating the system wide contextual menu
  • Next by Date: Re: Eval() ?
  • Previous by thread: How to Create the New Print Panel Similar to that of Preview Application
  • Next by thread: Re: How to implement a preview view for printing
  • Index(es):
    • Date
    • Thread