• 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: Printing multiple images each on a separate page using single NSPrintOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing multiple images each on a separate page using single NSPrintOperation


  • Subject: Re: Printing multiple images each on a separate page using single NSPrintOperation
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 07 Nov 2011 15:21:01 -0800

> Now when I have multiple pages to print, I would like to print all of them using a single NSPrintOperation. So basically, I would like to insert NSImage/NSImageView of each page as a separate page into a single NSView and use this NSView to print finally using NSPrintOperation.

That approach will work just fine. Make a NSView subclass that contains all your pages/NSImageViews and have that subclass override the necessary custom pagination methods (eg: -knowsPageRange:). Then just create a NSPrintOperation for that big NSView. See:

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Printing/Concepts/pagination.html#//apple_ref/doc/uid/20001051-BBCHHAHI

~Martin


_______________________________________________

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

References: 
 >Printing multiple images each on a separate page using single NSPrintOperation (From: Rahul Kesharwani <email@hidden>)

  • Prev by Date: Re: Allocating too much memory kills my App rather than returning NULL
  • Next by Date: Re: Allocating too much memory kills my App rather than returning NULL
  • Previous by thread: Printing multiple images each on a separate page using single NSPrintOperation
  • Next by thread: Re: Sandbox issues
  • Index(es):
    • Date
    • Thread