Re: Printing a view + landscape printing
Re: Printing a view + landscape printing
- Subject: Re: Printing a view + landscape printing
- From: Jean Suisse <email@hidden>
- Date: Mon, 21 Jan 2013 18:35:10 +0100
Answering a part of my question:
The menu item for printing needs to be re-wired to target the app delegate rather than the first responder.
Now, I need to fix the page orientation and determine the size in points for the rendering. Any ideas ?
On 21 janv. 2013, at 16:17, Jean Suisse <email@hidden> wrote:
> Dear All,
>
> I have a non-document based application to which I would like to add printing support.
> The main window (the one in the .xib created by default by Xcode) contains a split view.
>
> Currently, when printing, I get only the left pane of the split view (at best) or the control that has the focus (a textfield for instance) at worse.
> What would be the minimum change to perform in order to get the view in the right side of the split view to print itself in landscape (I would like to offer landscape by default to the user) ? I am happy with the rest of the print flow the way it is.
> Any pointers ?
>
> Thanks,
> Jean
>
> P.S.: I saw the Laying Out Page Content section in Printing Programming Guide, but I don't get how it is decided that the content of the view exceeds the size of a single page. I would prefer my view to be told to fit the selected page size (It is possible in my particular situation. I am printing graphics that can be resized to any size, to any ratio).
>
_______________________________________________
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