Type Method


Returns the content rectangle used by a window with a given frame rectangle and window style.


+ (NSRect)contentRectForFrameRect:(NSRect)fRect styleMask:(NSWindowStyleMask)style;



The frame rectangle for the window expressed in screen coordinates.


The window style for the window. See NSWindowStyleMask for a list of style mask values.

Return Value

The content rectangle, expressed in screen coordinates, used by the window with fRect and style.


When a NSWindow instance is available, you should use contentRectForFrameRect: instead of this method.

See Also

Getting Layout Information

+ frameRectForContentRect:styleMask:

Returns the frame rectangle used by a window with a given content rectangle and window style.

+ minFrameWidthWithTitle:styleMask:

Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style.

- contentRectForFrameRect:

Returns the window’s content rectangle with a given frame rectangle.

- frameRectForContentRect:

Returns the window’s frame rectangle with a given content rectangle.