Re: NSScrollView how to scroll to top
Re: NSScrollView how to scroll to top
- Subject: Re: NSScrollView how to scroll to top
- From: Bjoern Kriews <email@hidden>
- Date: Sun, 28 Mar 2004 22:09:55 +0200
On 28.03.2004, at 21:01, Matt Jaffa wrote:
Hi,
I have a NSScrollView, and when I load up my main window,
the scrollview always Scrolls to the bottom of the view, I would like
to make
It so that the ScrollView starts at the top.
So how do I make the NSScrollView Scroll to the top automatically?
Look at the NSScrollView documentation (- contentView) this one
returns a NSClipView,
then look at its scrollToPoint method.
Call this stuff in the awakeFromNib method of your controller.
I am not sure at the moment if you have to call NSScrollViews
reflectScrolledClipView
method, I'd expect that NSClipView does this automatically.
HTH, Bjoern
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.