Instance Method


Scrolls the view’s closest ancestor NSClipView object proportionally to the distance of an event that occurs outside of it.


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



An event object whose location should be expressed in the window’s base coordinate system (which it normally is), not the receiving view's.

Return Value

Returns YES if any scrolling is performed; otherwise returns NO.


View objects that track mouse-dragged events can use this method to scroll automatically when the cursor is dragged outside of the NSClipView object. Repeated invocations of this method (with an appropriate delay) result in continual scrolling, even when the mouse doesn’t move.

See Also


- prepareContentInRect:

Prepares the overdraw region for drawing.


The portion of the view that has been rendered and is available for responsive scrolling.

- scrollPoint:

Scrolls the view’s closest ancestor NSClipView object so a point in the view lies at the origin of the clip view's bounds rectangle.

- scrollRectToVisible:

Scrolls the view’s closest ancestor NSClipView object the minimum distance needed so a specified region of the view becomes visible in the clip view.

- adjustScroll:

Overridden by subclasses to modify a given rectangle, returning the altered rectangle.

- scrollRect:by:

Copies the visible portion of the view’s rendered image within a region and lays that portion down again at a specified offset .


The nearest ancestor scroll view that contains the current view.

- scrollClipView:toPoint:

Notifies the superview of a clip view that the clip view needs to reset the origin of its bounds rectangle.

- reflectScrolledClipView:

Notifies a clip view’s superview that either the clip view’s bounds rectangle or the document view’s frame rectangle has changed, and that any indicators of the scroll position need to be adjusted.