resize(withOldSuperviewSize:)
Informs the view that the bounds size of its superview has changed.
Declaration
func resize(withOldSuperviewSize oldSize: NSSize)Parameters
- oldSize:
The previous size of the superview’s bounds rectangle.
Discussion
This method is normally invoked automatically from resizeSubviews(withOldSize:).
The default implementation resizes the view according to the autoresizing options specified by the autoresizingMask property. You shouldn’t invoke this method directly, but you can override it to define a specific resizing behavior.
If you override this method and call super as part of your implementation, you should be sure to call super before making changes to the receiving view’s frame yourself.