Re: How can I make an NSScrollView scroll to the top?
Re: How can I make an NSScrollView scroll to the top?
- Subject: Re: How can I make an NSScrollView scroll to the top?
- From: Steve Israelson <email@hidden>
- Date: Fri, 8 Jun 2007 11:44:55 -0700
Ack.
Well, after posting this I decided to put a breakpoint on
ScrollToPoint and lo and behold, a custom view class was assuming it
was in a scroll view and scrolling itself. So after commenting out
that code, mine worked fine.
Another false alarm.
On 8-Jun-07, at 11:20 AM, Steve Israelson wrote:
I am trying to make a view that looks and behaves like spotlight.
The user can click the disclosure triangles to hide some results,
or click on the "more" button to show more than the top 5.
When these settings change I re-tile all the views within the
scroller.
I place a header with the title at the top, followed by an
NSTableView, then a footer view. I do this for each category.
I end up with a height value of how high all these views stack up.
I use this value to set the frame size of my container view that
holds all these stacked views.
The problem I have is that the scroller ALWAYS scrolls down to the
bottom, so that the top items are scrolled off the top.
I want it the other way around so that the top items are visible,
and the bottom items vanish off the bottom.
I have tried all sorts of scrollPoint etc methods and none of them
work.
The best I could get was seeing it scrolled correctly for about
1/60th of a second, then the scroller automatically scrolled to the
bottom.
I suspect one of the other views is somehow telling the scroller to
scroll.
Does anyone have any thoughts on how to go about making this thing
behave?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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