Hi,
Still relatively new to Cocoa/Objective-C, I haven't been able to find how to insert pages into an NSView with the goal of printing the view as a multi-page PDF file.
Here's the deal: I'm writing a scanning application and have been able to successfully acquire and display (in an NSImageView) multiple pages from a scanner with an ADF (document feeder). Up to this point, I've simply been storing each image in a NSMutableArray and then flipping through the array to show the pages on the UI. I understand that I should be able to have all of my images in a single NSView -- and that if they are that I can print them one to a page if I use NSPrintOperation with the correct NSPrintInfo setting -- but I'm darned if I can figure out how to get those images into one view. Any help would be greatly appreciated.
Mark
Still relatively new to Cocoa/Objective-C, I haven't been able to find how to insert pages into an NSView with the goal of printing the view as a multi-page PDF file.
Here's the deal: I'm writing a scanning application and have been able to successfully acquire and display (in an NSImageView) multiple pages from a scanner with an ADF (document feeder). Up to this point, I've simply been storing each image in a NSMutableArray and then flipping through the array to show the pages on the UI. I understand that I should be able to have all of my images in a single NSView -- and that if they are that I can print them one to a page if I use NSPrintOperation with the correct NSPrintInfo setting -- but I'm darned if I can figure out how to get those images into one view. Any help would be greatly appreciated.
Mark