FROM : David Duncan
DATE : Tue Jan 29 19:34:00 2008
On Jan 29, 2008, at 6:18 AM, Jim Correia wrote:
> It looks like the pagination methods on NSView solve the opposite
> problem that I'd like to solve here. I don't want to paginate my
> view, but expand it to take up a full page when the on screen
> dimensions are smaller than one page.
>
> In this situation, what is the best way to solve the problem? Simply
> create and configure another view for printing which displays the
> same content?
The pagination methods are still the best way to do this. You would
simply state that your content has exactly 1 page that fills the size
of the paper. Then when your -drawRect is invoked, it will be invoked
to draw within the bounds of the page size you specified previously.
--
David Duncan
Apple DTS Animation and Printing
david.<email_removed>
DATE : Tue Jan 29 19:34:00 2008
On Jan 29, 2008, at 6:18 AM, Jim Correia wrote:
> It looks like the pagination methods on NSView solve the opposite
> problem that I'd like to solve here. I don't want to paginate my
> view, but expand it to take up a full page when the on screen
> dimensions are smaller than one page.
>
> In this situation, what is the best way to solve the problem? Simply
> create and configure another view for printing which displays the
> same content?
The pagination methods are still the best way to do this. You would
simply state that your content has exactly 1 page that fills the size
of the paper. Then when your -drawRect is invoked, it will be invoked
to draw within the bounds of the page size you specified previously.
--
David Duncan
Apple DTS Animation and Printing
david.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Jim Correia | Jan 29, 15:18 | |
| David Duncan | Jan 29, 19:34 | |
| Jim Correia | Jan 29, 23:12 |






Cocoa mail archive

