Instance Property

contentAspectRatio

The window’s content aspect ratio.

Declaration

@property NSSize contentAspectRatio;

Discussion

By default, the content aspect ratio (that is, height in relation to width) is (0, 0). If you set the aspect ratio of a window’s content view, the dimensions of its content rectangle are constrained to integral multiples of that ratio when users resize it. You can set a window’s content view to any size programmatically, regardless of its aspect ratio. The value of this property takes precedence over aspectRatio.

See Also

Sizing Content

contentMinSize

The minimum size of the window’s content view in the window’s base coordinate system.

- setContentSize:

Sets the size of the window’s content view to a given size, which is expressed in the window’s base coordinate system.

contentMaxSize

The maximum size of the window’s content view in the window’s base coordinate system.

contentResizeIncrements

The window’s content-view resizing increments.

contentLayoutGuide

A value used by Auto Layout constraints to automatically bind to the value of contentLayoutRect.

contentLayoutRect

The area inside the window that is for non-obscured content, in window coordinates.

maxFullScreenContentSize

A maximum size that is used to determine if a window can fit when it is in full screen in a tile.

minFullScreenContentSize

A minimum size that is used to determine if a window can fit when it is in full screen in a tile.