Re: NSPrintInfo and NSPageLayout

2011-10-08 Thread Torsten Curdt
So I have the panel and the preview is correct. Now I click to change the orientation from portrait to landscape. Of course at a scaling factor of 100% it should fill the page, but instead it's just sticks to the previous size and centers it on the page. What am I missing there? Hard to

Re: NSPrintInfo and NSPageLayout

2011-10-08 Thread Ken Thomases
On Oct 8, 2011, at 8:29 AM, Torsten Curdt wrote: So I have the panel and the preview is correct. Now I click to change the orientation from portrait to landscape. Of course at a scaling factor of 100% it should fill the page, but instead it's just sticks to the previous size and centers it on

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Torsten Curdt
1) Currently I set the width of the view to the page size width minus the left and right margin. Frankly speaking I have no clue if that is the right thing to do. Or is imageablePageBounds the one to use? I'm not sure.  I know that you can get the PMPageFormat object from the NSPrintInfo

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Ken Thomases
On Oct 7, 2011, at 5:05 AM, Torsten Curdt wrote: The -runModal method uses the shared print info object, which can be obtained with +[NSPrintInfo sharedPrintInfo]. You can change the shared print info with +[NSPrintInfo setSharedPrintInfo:], if you have reason to. Alternatively, you can

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Torsten Curdt
Another question that came up... So I have the panel and the preview is correct. Now I click to change the orientation from portrait to landscape. Of course at a scaling factor of 100% it should fill the page, but instead it's just sticks to the previous size and centers it on the page. What am

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Ken Thomases
On Oct 7, 2011, at 5:41 AM, Torsten Curdt wrote: So I have the panel and the preview is correct. Now I click to change the orientation from portrait to landscape. Of course at a scaling factor of 100% it should fill the page, but instead it's just sticks to the previous size and centers it on

NSPrintInfo and NSPageLayout

2011-10-06 Thread Torsten Curdt
So I have a custom view and I am adding printing support. I've set it up like this: https://gist.github.com/919d845b2e1b5becbaac where I create a custom instance of my view, setup the NSPrintInfo and then run the NSPrintOperation. Now there are a couple of things I couldn't quite figure out

Re: NSPrintInfo and NSPageLayout

2011-10-06 Thread Ken Thomases
On Oct 6, 2011, at 8:46 AM, Torsten Curdt wrote: 1) Currently I set the width of the view to the page size width minus the left and right margin. Frankly speaking I have no clue if that is the right thing to do. Or is imageablePageBounds the one to use? I'm not sure. I know that you can get