Setting the position of a NSScrollView

2015-09-09 Thread Dave
Found it! -(void) scrollToTopOfScrollView:(NSScrollView*) theScrollView { NSPoint myScrollPosition; if ([[theScrollView documentView] isFlipped] == YES) myScrollPosition = NSMakePoint(0.0,0.0); else myScrollPosition=NSMakePoint(0.0,NSMaxY([[theScrollView d

Setting the position of a NSScrollView

2015-09-09 Thread Dave
Also tried: NSPoint myScrollPosition; myScrollPosition = NSMakePoint(0,0); [[self.pValidationIssueScrollView documentView] scrollPoint:myScrollPosition]; This is being called in windowDidLoad but I’ve also tried calling it in awakeFromLib __

Setting the position of a NSScrollView

2015-09-09 Thread Dave
Hi All, I’m using the code below to set the position of a Scroll View: NSPoint pt = NSMakePoint(0,[[self.pValidationIssueScrollView documentView] bounds].size.height); [[self.pValidationIssueScrollView documentView] scrollPoint:pt]; However it doesn’t seem to do anything. The Clip View of the N