Constrains the bounds of the clip view while the user is magnifying and scrolling.
- macOS 10.9+
The bounds to use to ensure that the view will still lie within its document view.
A bounds rectangle.
Note that you can move an implementation of the deprecated
constrain to this method by adjusting the origin of
proposed (instead of using the
new parameter in
-constrain). To preserve compatibility, if a subclass overrides
-constrain, the default behavior of
constrain will be to use that
-constrain to adjust the origin of
proposed, and to not change the size.