Somewhere I read that printing is always a pain, but with Cocoa it's somewhat less of a pain.
Not that I've done a lot of printing, but that was my impression. (Some years ago I tried printing with Microsoft Visual C++ and that was really bad -- maybe MSVC is better by now, but haven't touched MS for years). In my first cocoa project I wanted to print a report for a business application, with headers, footers, a Logo, certain designated places on the page for certain things, page x of y, and a print preview. It was a little bit tedious but not mysterious once I read Printing Programming Topics for Cocoa. And once I got it set up it was easy to tweak. I also found the printing chapter in Hillegass' "Cocoa Programming for Mac OS X" helpful. John V. On Thu, Mar 18, 2010 at 03:47:48PM -0400, Brian Postow wrote: > I'm trying to print a document. The document is an array of NSImageReps, or a > single NSPDFImageRep, which has multiple pages. I'm having trouble figuring > out how to use the NSPrintOperation class to print this. > > The NSPrintOperation seems to need an NSView to print. Do I need to manually > add each image into the view at a calculated position and then let it do the > pagination? that seems like it isn't in the spirit of Cocoa... is there some > technique that I'm missing? > > Brian Postow > Senior Software Engineer > Acordex Imaging Systems > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/velman%40cox.net > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
