• 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 to save and restore NSScrollView scroll position?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to save and restore NSScrollView scroll position?


  • Subject: How to save and restore NSScrollView scroll position?
  • From: James Walker <email@hidden>
  • Date: Fri, 02 Apr 2010 13:15:35 -0700

I have an NSScrollView containing an NSTableView whose content is managed by an NSArrayController. I have a situation where I need to temporarily set the array controller's content to nil, mess with the content, and then hand it back to the array controller, and I'd like to preserve the scrolling position. I thought I could just get the value of the NSScroller before, and set it back after, but that results in the scroll bar being out of sync with the actual scrolling state of the table. How can I do it?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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


  • Follow-Ups:
    • Re: How to save and restore NSScrollView scroll position?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Detecting which MKAnnotation Detail Disclosure was touched
  • Next by Date: Re: Creating WebView in code
  • Previous by thread: Re: MutableArray losing contents
  • Next by thread: Re: How to save and restore NSScrollView scroll position?
  • Index(es):
    • Date
    • Thread