Forcing a scroll to the top of an NSScrollView
Forcing a scroll to the top of an NSScrollView
- Subject: Forcing a scroll to the top of an NSScrollView
- From: Adam Holt <email@hidden>
- Date: Thu, 04 Aug 2005 15:57:34 +0100
Hi,
I'm trying to force my scrollview to scroll to the top. I've tried a few
things but neither have worked, including:
[myScrollView scrollPoint:NSZeroPoint];
... which seemed to do nothing, and:
[[myScrollView verticalScroller] setFloatValue:0.0];
... which moved the scroller itself to the top, but didn't actually scroll
the view (i.e. Scroller and view no longer synched).
Can somebody please suggest a method that works for this?
Thanks,
Adam.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden