Question

How can I link (synchronize) the scrolling of two NSTableViews (or their underlying NSScrollViews) in Cocoa AppKit?

I tried simply setting the scroller of one to the scroller of the other, but this results in the second table losing control of the scroller (i.e. it no longer appears beside the table).

An earlier question addressed this for UIKit, but the AppKit NSScroller does not appear to provide an equivalent interface.

Any help appreciated!

Was it helpful?

Solution

See the ScrollView Programming Guide's section on Synchronizing Scroll Views.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top