Contents

resizeIncrements

The window’s resizing increments.

Declaration

var resizeIncrements: NSSize { get set }

Discussion

This property restricts the user’s ability to resize the window so the width and height change by multiples of width and height increments. As the user resizes the window, its size changes by multiples of increments``.width and increments``.height, which should be whole numbers, 1.0 or greater. Whatever the current resizing increments, you can set an NSWindow object’s size to any height and width programmatically.

Resize increments and aspect ratio are mutually exclusive attributes. For more information, see aspectRatio.

The contentResizeIncrements property takes precedence over this property.

See Also

Sizing Windows