Instance Property

contentLayoutRect

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

Declaration

@property(readonly) NSRect contentLayoutRect;

Discussion

Typically, the area represented by this property is the same as the frame of the contentView. However, for windows with NSFullSizeContentViewWindowMask set, there needs to be a way to determine the portion that is not under the toolbar. The contentLayoutRect property contains the portion of the layout that is not obscured under the toolbar. This property is KVO compliant.

See Also

Sizing Content

contentAspectRatio

The window’s content aspect ratio.

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.

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.