---
title: "scroll(_:to:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/scroll(_:to:)"
---

# scroll(_:to:)

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

## Declaration

```swift
func scroll(_ clipView: NSClipView, to point: NSPoint)
```

## Parameters

- `clipView`: The doc://com.apple.appkit/documentation/AppKit/NSClipView object whose superview is to be notified.
- `point`: A point that specifies the new origin of the clip view’s bounds rectangle.

## Discussion

Discussion The superview of clipView should then send a scroll(to:) message to clipView with point as the argument. This mechanism is provided so the NSClipView object’s superview can coordinate scrolling of multiple tiled clip views.

## See Also

### Related Documentation

- [scroll(to:)](appkit/nsclipview/scroll(to:).md)

### Scrolling the View

- [prepareContent(in:)](appkit/nsview/preparecontent(in:).md)
- [preparedContentRect](appkit/nsview/preparedcontentrect.md)
- [scroll(_:)](appkit/nsview/scroll(_:).md)
- [scrollToVisible(_:)](appkit/nsview/scrolltovisible(_:).md)
- [autoscroll(with:)](appkit/nsview/autoscroll(with:).md)
- [adjustScroll(_:)](appkit/nsview/adjustscroll(_:).md)
- [enclosingScrollView](appkit/nsview/enclosingscrollview.md)
- [reflectScrolledClipView(_:)](appkit/nsview/reflectscrolledclipview(_:).md)
- [isCompatibleWithResponsiveScrolling](appkit/nsview/iscompatiblewithresponsivescrolling.md)
