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
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
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
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
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
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:
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
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: - (NS
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?
Thanks,
Bruce
___
Cocoa-dev maili
On Thu, 27 Jan 2011 22:53:51 +, "Mirabito, David" said:
>Now the view should print a bunch of data (ideally with a header covering
>~20% of the first page).
>
>I get my calls to -knowsPageRange:aRange and -rectForRange:pageNumber just
>fine. Retuning (1,2) and then [self view] for both pages p
Hello,
I've scoured the 'net (including this list's archives) and found many useful
bits of info that have gotten me this far, but I fear I am stuck. Apologies
if I've simply missed something in my searches.
I have my CoreData Document-based app and 'print' ends up allocing and
initing up a Print
On Wed, 15 Jul 2009 21:23:29 -0700, "K. Darcy Otto" said:
>For those who are working on a similar problem, I created new view
>controller object from -printOperationWithSettings:, and that view
>object in turn creates the view that I want to print. That view
>implements various other subviews, b
On 16/07/2009, at 2:23 PM, K. Darcy Otto wrote:
There is probably some more efficient way to check where the page
should be broken, but the above implementation works just fine.
Working code is always worth much more than theoretical code, but if
your table has a constant height per row,
Thanks Matt, for the advice. I followed your links, and found the
best way, for me at least, to print what I wanted was to create a view
in IB, populate a custom view with text fields and tables, and then
resize that view for printing.
For those who are working on a similar problem, I crea
On Mon, 13 Jul 2009 10:07:17 -0700, "K. Darcy Otto" said:
>Now, this should simply print a line of integers down the left side of
>the page. It does this for two pages - works perfectly - with lines 0
>to 50 on the first page, and 51 to 100 on the second page, divided
>correctly so there is no s
Thanks Matt. You were absolutely correct; the problems I have were in
-drawRect:. I'm still trying to track down a problem though, and I'm
not sure where it is. I've actually cut it down to some fairly simple
code. Here it is:
-(NSRect)rectForPage:(NSInteger)pageNumber
{
// Note
On Sun, 12 Jul 2009 11:02:31 -0700, "K. Darcy Otto" said:
>I'm trying to print a custom view. I've already customized that view
>in -drawRect:, and everything seems to be displayed correctly. The
>problem I'm having is that when it comes time to do -rectForPage, the
>output to the printer seems
I'm trying to print a custom view. I've already customized that view
in -drawRect:, and everything seems to be displayed correctly. The
problem I'm having is that when it comes time to do -rectForPage, the
output to the printer seems to shift around. Here is the code:
-(NSRect)rectForPag
18 matches
Mail list logo