Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Page Break



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.