Why is [[NSScrollView documentView] scrollPoint:] not working in loadView method?
问题 I am trying to automatically scroll to the far right side of a horizontal imagebrowser in the loadView method of the view controller that contains the browser. It doesn't work when I try to do this (just scrolling to x=1000 as a test): - (void)loadView { [super loadView]; // Set initial position [[[self scrollView] documentView] scrollPoint:NSMakePoint(1000.0, 0.0)]; } But at some point in the course of debugging I found that this works: - (void)loadView { [super loadView]; // Set initial