• 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
Scrolling of multiple NSTableViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scrolling of multiple NSTableViews


  • Subject: Scrolling of multiple NSTableViews
  • From: Scott Mitchell <email@hidden>
  • Date: Thu, 4 Nov 2004 09:37:04 -0700

I am posting this for a co-worker of mine:


In previous threads on Cocoadev, people have talked about how to synchronize the scrolling of multiple NSTableViews to give the illusion of a 'fixed column'.


http://cocoa.mamasam.com/COCOADEV/2004/02/2/84862.php

While that solution works great for what it does, it's incomplete. Specifically, if the 'slave' table - the one without the subclassed -reflectScrolledClipView: method - is scrolled, perhaps by clicking and dragging inside the table view, selecting multiple rows and eventually scrolling off the bottom of the table, the 'master' table view will sit blissfully unscrolled.

I tried subclassing /both/ of the NSScrollViews, but it seems like they got into a vicious loop where they would continually try to reflect their scrolling on each other as each was updated.

Does anybody have any suggestions on how to do this the right way, and keep the views synchronized no matter where or how the scroll occurs?



Thanks,
Scott Mitchell
Macintosh Software Engineer
Excelsior Software
http://www.excelsiorsoftware.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: catching command-enter keyDown events in a table view
  • Next by Date: Re: catching command-enter keyDown events in a table view
  • Previous by thread: Re: [OT] Contract Work
  • Next by thread: Re: 1 pixel wide lines
  • Index(es):
    • Date
    • Thread