Type Method

contentSizeForFrameSize:hasHorizontalScroller:hasVerticalScroller:borderType:

Returns the content size calculated from the frame size and the specified specifications.

Declaration

+ (NSSize)contentSizeForFrameSize:(NSSize)fSize hasHorizontalScroller:(BOOL)hFlag hasVerticalScroller:(BOOL)vFlag borderType:(NSBorderType)type;

Parameters

frameSize

The frame size in the screen coordinate system

hFlag

A Boolean specifying that a horizontal scroller should be included.

vFlag

A Boolean specifying that a vertical scroller should be included.

borderType

Specifies the appearance of the style of the scroll view’s border. See NSBorderType for a list of possible values.

Return Value

The content view frame size.

Discussion

For an existing scroll view, you can simply use the contentSize property.

See Also

Deprecated Methods

+ frameSizeForContentSize:hasHorizontalScroller:hasVerticalScroller:borderType:

Returns the frame size of an scroll view that contains a content view with the specified size.

Deprecated