• 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
Modifying output of print operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modifying output of print operation


  • Subject: Modifying output of print operation
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 8 Oct 2006 13:32:07 +0200

When an NSPrintOperation gets a runOperation message it obviously asks its view for some data containing pdf code.

When NSPrintOperation has finished, and before it delivers its data to some file, a printer or Preview.app, I would like to intercept this data (hopefully as NSMutableData) and append a few bytes.

How can this be done?

I don't see any methods in NSPrintOperation giving me access to this data.

There is [NSView endDocument] which looks promising - but how to get at the data containing the pdf code?

Another problem:
NSPrintOperation has a method "deliverResult". The documentation says: "Do not invoke this method directly"
But it also says: "You should not subclass NSPrintOperation".
So: what is this method good for, if it can be neither invoked nor overridden?





_______________________________________________ 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
  • Prev by Date: Re: NSDictionary dictionaryWithContentsOfFile in Carbon app
  • Next by Date: AVCVideoServices
  • Previous by thread: Re: NSDictionary dictionaryWithContentsOfFile in Carbon app
  • Next by thread: AVCVideoServices
  • Index(es):
    • Date
    • Thread