Overridden by subclasses to adjust page height during automatic pagination.
- macOS 10.0+
Returns by indirection a new
floatvalue for the bottom edge of the pending page rectangle in the view's coordinate system.
floatvalue that sets the top edge of the pending page rectangle in the view’s coordinate system.
floatvalue that sets the bottom edge of the pending page rectangle in the view’s coordinate system.
The topmost float value
newcan be set to, as calculated using the value of the
This method is invoked by
new, allowing it to prevent items such as lines of text from being divided across pages. If
bottom is exceeded, the pagination mechanism simply uses
bottom for the bottom edge.
The default implementation of this method propagates the message to its subviews, allowing nested views to adjust page height for their drawing as well. An
NSButton object or other small view, for example, will nudge the bottom edge up if necessary to prevent itself from being cut in two (thereby pushing it onto an adjacent page). Subclasses should invoke
super’s implementation, if desired, after first making their own adjustments.