scrollPoint in NSScrollView does not scroll
scrollPoint in NSScrollView does not scroll
- Subject: scrollPoint in NSScrollView does not scroll
- From: Benjamin Rindt <email@hidden>
- Date: Fri, 14 Jun 2013 01:53:43 +0200
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 (email@hidden)
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:
This email sent to email@hidden