Instance Property


The rectangle defining the document view’s frame, adjusted to the size of the clip view if the document view is smaller.


@property(readonly) NSRect documentRect;


The document rectangle is used in conjunction with an NSClipView object’s bounds rectangle to determine values for the indicators of relative position and size between the NSClipView and its document view. For example, NSScrollView uses these rectangles to set the size and position of the knobs in its scrollers. When the document view is much larger than the NSClipView, the knob is small; when the document view is near the same size, the knob is large; and when the document view is the same size or smaller, there is no knob.

See Also

Accessing the Visible Portion


The exposed rectangle of the clip view’s document view, in the document view’s own coordinate system.