Page Break
Page Break
- Subject: Page Break
- From: Ivan Pinzon <email@hidden>
- Date: Mon, 31 Jan 2005 16:03:57 -0500
Hi There:
I need to force a page break in the middle of an NSView I'm building programatically for printing.
I know I need to override adjustPageHeightNew to be able to move the bottom coordinate up, so when the method is called the first time, I can make my NSView subclass (PageBreakView) start on the next page.
The thing is:
- in order to have adjustPageHeightNew called, the view must not fit in the page. So I created a big PageBreakView (1 page tall) that I append to the printable view
- I assume that the next thing to do, would be to set the newBottom to the top of my PageBreakView, so that whatever portion didn't fit in the current page, starts in the next one. How can I get/calculate this rect?
I've been trying to set the newBottom in many ways, but haven't been able to make it work consistently.
Has anyone implemented something similar? Any ideas/clues on how to implement this?
Thanks,
Ivan Pinzon
email@hidden
Mississauga, On, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden