Re: Printing a view
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