Hey, I'm trying this for I think over 3 hours just to get my View to scroll to a point when loaded. But not to start and cut off the rest of it, just be scrolled to there.
Tried it in my real project, didn't work, made small test project, doesn't work either. NSScrollView* myscrollview = [[NSScrollView alloc] initWithFrame:NSMakeRect(0, 0, 200, 200)]; NSClipView* myclipview = [[NSClipView alloc] initWithFrame:NSMakeRect(0, 0, 500, 400)]; [myscrollview setHasVerticalScroller:YES]; [myscrollview setHasHorizontalScroller:YES]; [myscrollview setDocumentView:myclipview]; [[myscrollview documentView] scrollPoint:NSMakePoint(300.0, 300.0)]; [self.window.contentView addSubview:myscrollview]; but this isn't scrolling anywhere. I'm shure I'm missing something. Thanks for reply! _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com