Instance Property


The options that determine how the view is resized relative to its superview.


@property NSAutoresizingMaskOptions autoresizingMask;


The value of this property is an integer bit mask specified by combining the options described in NSAutoresizingMaskOptions. This mask is used by the resizeWithOldSuperviewSize: method when the view needs to be resized.

If the autoresizing mask is set to NSViewNotSizable (that is, if none of the options are set), the view does not resize at all. When more than one option along an axis is set, the resizeWithOldSuperviewSize: method distributes the size difference as evenly as possible among the flexible portions. For example, if NSViewWidthSizable and NSViewMaxXMargin are set and the superview’s width has increased by 10.0 points, the view’s frame and right margin are each widened by 5.0 points.

See Also

Resizing Subviews


A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes.

- resizeSubviewsWithOldSize:

Informs the view’s subviews that the view’s bounds rectangle size has changed.

- resizeWithOldSuperviewSize:

Informs the view that the bounds size of its superview has changed.