Contents

scroll(_:to:)

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

Declaration

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

Parameters

  • clipView:

    The Nsclipview object whose superview is to be notified.

  • point:

    A point that specifies the new origin of the clip view’s bounds rectangle.

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

Scrolling the View