Instance Method
scroll(_:toReferencePoint:) scrollPoint:toReferencePoint: scrollPoint_toReferencePoint_
Scrolls the position of point to the position of referencePoint in the view.
Declaration
func scroll(_ point: NSPoint, toReferencePoint referencePoint: NSPoint)Declaration
- (void) scrollPoint:(NSPoint) point toReferencePoint:(NSPoint) referencePoint;Declaration
scrollPoint_toReferencePoint_(point: NSPoint, referencePoint: NSPoint)Parameters
pointThe point to scroll to the reference point. The coordinates are in view points.
referencePointThe point to scroll to. The coordinates are in view points from the origin (top left) of the visible rect of the clip view excluding inserts. The center reference point, for example, would be the mid-x and mid-y of the user visible frame.