Re: discontiguous bounds ?
Re: discontiguous bounds ?
- Subject: Re: discontiguous bounds ?
- From: Graham Cox <email@hidden>
- Date: Mon, 09 May 2016 17:59:12 +1000
> On 9 May 2016, at 3:50 PM, Quincey Morris <email@hidden> wrote:
>
> AFAIK there’s nothing in Cocoa that will implement this for you. I’m not sure that using two table views is really very complex — they could potentially use the same data source and delegate — but the trick is to get the vertical scrolling in sync. I believe this is doable, though awkward. There’s even documentation:
>
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/SynchroScroll.html
>
> but I warn you that this document was last updated in 2010, and the last time I tried to make sense of it I was pretty sure its sample code was confused and buggy.
I’ve done this, based on that code. Yes, it was a bit buggy, but I got it to work. The app it’s a part of still works when compiled with the latest tools and SDK. But yes, you need two separate table views to do this.
—Graham
_______________________________________________
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