Re: Printable region and drawRect
Re: Printable region and drawRect
- Subject: Re: Printable region and drawRect
- From: Michael Ericson <email@hidden>
- Date: Tue, 29 Oct 2002 14:32:59 -0700
On Tuesday, October 29, 2002, at 09:28 AM, Stiphane Sudre wrote:
On mardi, oct 29, 2002, at 09:45 Europe/Paris, Michael Ericson wrote:
Any ideas on how I can draw to the entire printable region of the
page?
I would suppose you're using the same view to print that the one
you're using in your interface.
If you want to draw in a bigger area, you will have to create a
dedicated print view.
Actually, this particular view is a dedicated print view. In fact it
is never drawn to the screen (except, of course when doing a print
preview).
I've looked at the NSPrintInfo documentation and it provides methods to
access the page size, margins, orientation, etc. and that gives me the
rectangle I need. The problem is still that the drawRect method
receives a tiny little NSRect in which to draw itself rather than the
full printable region of the page.
I guess my question is - how can I draw into the printable region
rectangle rather than the one provided to my view's drawRect method?
Can I do this legally (i.e. without some bizarre side-effects) by
drawing outside the given rectangle or is there some other "official"
way to do this?
----
michael a. ericson
www.unm.edu/~maerics
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.