Informs the view’s subviews that the view’s bounds rectangle size has changed.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
func resizeSubviews(withOldSize oldSize: NSSize)
Parameters
oldBoundsSize
The previous size of the view's bounds rectangle.
Discussion
If the view is configured to autoresize its subviews, this method is automatically invoked by any method that changes the view’s frame size.
The default implementation sends resize(with
to the view’s subviews with old
as the argument. You shouldn’t invoke this method directly, but you can override it to define a specific resizing behavior.