FROM : Alexander Cohen
DATE : Fri Nov 02 18:01:46 2007
Hi,
When i start printing a view using the normal AppKit simple printing
achitecture and my view receives a drawRect message, will its bounds
be set up to the size of the paper or will its bounds still be setup
to it's size in the window?
Im asking because i have a view that calculates its layout on frame
changes. And when i get a print message, i need to recalculate my
layout in order for it to print correctly. But when printing is done,
my layout is not good anymore since i recalculated for the print page
and not the window.
What do people usually do to print out a view that has complicated
layout and will not be laid out the same way when printed than on
screen?
thanks
AC
DATE : Fri Nov 02 18:01:46 2007
Hi,
When i start printing a view using the normal AppKit simple printing
achitecture and my view receives a drawRect message, will its bounds
be set up to the size of the paper or will its bounds still be setup
to it's size in the window?
Im asking because i have a view that calculates its layout on frame
changes. And when i get a print message, i need to recalculate my
layout in order for it to print correctly. But when printing is done,
my layout is not good anymore since i recalculated for the print page
and not the window.
What do people usually do to print out a view that has complicated
layout and will not be laid out the same way when printed than on
screen?
thanks
AC
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

