Re: Trouble with initial position of NSScrollView
Re: Trouble with initial position of NSScrollView
- Subject: Re: Trouble with initial position of NSScrollView
- From: Graham Cox <email@hidden>
- Date: Tue, 10 Nov 2009 10:02:36 +1100
On 10/11/2009, at 7:10 AM, Oftenwrong Soong wrote:
Unfortunately each time I swap a view, the vertical scrollbar goes
all the way to the bottom, meaning that I have to manually scroll
back up to bring the view into view.
What did I do wrong?
Nothing, as far as I can see. But NSScrollView works this way when its
document view is not flipped, so you'll need to return YES from -
isFlipped for that view to have it default to the top, left scroll
position instead of the bottom, left.
--Graham
_______________________________________________
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