• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How can I make an NSScrollView scroll to the top?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I make an NSScrollView scroll to the top?


  • Subject: How can I make an NSScrollView scroll to the top?
  • From: Steve Israelson <email@hidden>
  • Date: Fri, 8 Jun 2007 11:20:25 -0700

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


  • Follow-Ups:
    • Re: How can I make an NSScrollView scroll to the top?
      • From: Steve Israelson <email@hidden>
  • Prev by Date: Sizing an NSTableView to be big enough to show all its rows
  • Next by Date: Re: How can I make an NSScrollView scroll to the top?
  • Previous by thread: Sizing an NSTableView to be big enough to show all its rows
  • Next by thread: Re: How can I make an NSScrollView scroll to the top?
  • Index(es):
    • Date
    • Thread