• 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 a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing a view


  • Subject: Re: Printing a view
  • From: Graham Cox <email@hidden>
  • Date: Tue, 22 Feb 2011 09:31:24 +1100

On 22/02/2011, at 9:24 AM, Bruce Cresanta wrote:

> Hello,
>
> 	I'm working with NSDocument.   I only have one view that I would like to print, but I don't see a method in NSDocument that takes an NSView parameter.    How do I print only one view in an NSDocument?


You override: - (NSPrintOperation *)printOperationWithSettings:(NSDictionary *)printSettings error:(NSError **)outError in your document, and create a NSPrintOperation. The NSPrintOperation takes a view parameter where you can nominate the printing view.

--Graham



_______________________________________________

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 a view (From: Bruce Cresanta <email@hidden>)

  • Prev by Date: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
  • Next by Date: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
  • Previous by thread: Printing a view
  • Next by thread: exception when I try to access a managedObject property from within an accessor of another property
  • Index(es):
    • Date
    • Thread