Re: Printing a view + landscape printing

2013-01-22 Thread Kyle Sluder
On Tue, Jan 22, 2013, at 02:20 AM, Jean Suisse wrote: > Now, the result fits one page, in landscape mode. However, the > aspect/ratio of the view remains the same as displayed on screen. > How can I change the size (bounds) of the view and its subview but for > printing only ? I could stretch the r

Re: Printing a view + landscape printing

2013-01-22 Thread Jean Suisse
On 22 janv. 2013, at 10:29, Graham Cox wrote: > On 22/01/2013, at 7:50 PM, Jean Suisse wrote: > >> Thank you very much for your reply. >> I can now print the right view. This view (Parent View) has only two large >> custom subviews in which I display graphics. >> >>> AFAIK, fit-to-page is not a

Re: Printing a view + landscape printing

2013-01-22 Thread Graham Cox
All you should need to do is to set the (h,v) pagination mode of the NSPrintInfo to NSFitPagination. That's all I do to scale my entire document to a single piece of paper, and it "just works" in that it takes into account the paper orientation and everything for you. Note that the view doesn't

Re: Printing a view + landscape printing

2013-01-22 Thread Jean Suisse
Thank you very much for your reply. I can now print the right view. This view (Parent View) has only two large custom subviews in which I display graphics. Currently, when I print Parent View, it is vertically spanned over two pages (which are printed) and horizontally spanned over two pages (wh

Re: Printing a view + landscape printing

2013-01-21 Thread Keary Suska
On Jan 21, 2013, at 8:17 AM, Jean Suisse wrote: > 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 s

Re: Printing a view + landscape printing

2013-01-21 Thread Jean Suisse
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 wrote:

Printing a view + landscape printing

2013-01-21 Thread Jean Suisse
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 f