Overridden by subclasses to adjust page width during automatic pagination.
- macOS 10.0+
Returns by indirection a new
floatvalue for the right edge of the pending page rectangle in the view's coordinate system.
floatvalue that sets the left edge of the pending page rectangle in the view’s coordinate system.
floatvalue that sets the right edge of the pending page rectangle in the view’s coordinate system.
newcan be set to, as calculated using the value of the
This method is invoked by
new, allowing it to prevent items such as small images or text columns from being divided across pages. If
right is exceeded, the pagination mechanism simply uses
right for the right edge.
The default implementation of this method propagates the message to its subviews, allowing nested views to adjust page width for their drawing as well. An
NSButton object or other small view, for example, will nudge the right edge out 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.