• 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
Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?


  • Subject: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • From: Antonio Nunes <email@hidden>
  • Date: Sat, 14 Jun 2008 07:40:58 +0100

On 14 Jun 2008, at 05:28, Wilhelm Phillips wrote:

In order to achieve the desired result I subclassed PDFPage from PDFKit to draw the appropriate numbers and PDFDocument to apply that pageClass to any pages that I add to myPDFDocument.

An alternative may be to try to leverage NSGrahpicContext's isDrawingToScreen. A return value of NO may mean that the drawing destination is a printer, but the destination may also be a PDF or EPS file, so you need to set up a way to make sure you're not drawing to a PDF or EPS file when you call it. Once you have that set up you can add some code to your PDFPage subclass's drawWithBox: method that sets a flag to indicate the page was printed and/or its number was used.


The following link may have some more useful info:
http://frameworker.wordpress.com/2008/05/16/a-glimpse-into-pdfkit/

António

--------------------------------------------
I try to take one day at a time, but sometimes, several days attack me all at once!
--------------------------------------------



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
      • From: Wilhelm Phillips <email@hidden>
    • Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
      • From: Wilhelm Phillips <email@hidden>
References: 
 >Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked? (From: Wilhelm Phillips <email@hidden>)

  • Prev by Date: Re: converting HTML causes crash
  • Next by Date: How to insert not editable text
  • Previous by thread: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • Next by thread: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • Index(es):
    • Date
    • Thread