Instance Method

autoscroll:

Scrolls the clip view proportionally to theEvent’s distance outside of it.

Declaration

- (BOOL)autoscroll:(NSEvent *)event;

Discussion

theEvent’s location should be expressed in the window’s base coordinate system (which it normally is), not the receiving NSClipView. Returns YES if any scrolling is performed; otherwise returns NO.

Never invoke this method directly; instead, the NSScrollView’s document view should repeatedly send itself autoscroll: messages when the pointer is dragged outside the NSScrollView’s frame during a modal event loop initiated by a mouse-down event. The NSView class implements autoscroll: to forward the message to the receiver’s superview; thus the message is ultimately forwarded to the NSClipView.

See Also

Scrolling

- scrollToPoint:

Changes the origin of the clip view’s bounds rectangle to newOrigin.

- constrainScrollPoint:

Returns a scroll point adjusted from the proposed new origin, if necessary, to guarantee the view will lie within its document view.

Deprecated
- constrainBoundsRect:

Constrains the bounds of the clip view while the user is magnifying and scrolling.