Does anyone know the correct way to scroll the NSScrollView to the top? I was looking for an equivalent to the UIView\'s scrollToTop method.
This is what I have so far,
Finally figured it out. Works like a charm!
if ([self hasVerticalScroller]) { self.verticalScroller.floatValue = 0; } NSPoint newOrigin = NSMakePoint(0, NSMaxY(((NSView*)self.documentView).frame) - self.boundsHeight); [self.contentView scrollToPoint:newOrigin];