NSCollectionView isn't playing nicely with selection binding
NSCollectionView isn't playing nicely with selection binding
- Subject: NSCollectionView isn't playing nicely with selection binding
- From: Steve Mills <email@hidden>
- Date: Wed, 02 Nov 2016 08:31:08 -0500
So NSCollectionView can bind its selectionIndexes, so I've bound that to an array controller that's shared with an NSTableView. Only one of the two are ever shown at the same time, but many things depend on the array controller's selectionIndexes. The trouble is, changes to the collection view's selection don't notify the selectionIndexes binding. I've subclasses the collection view just so I could override all the various selection methods to see what's going on. The methods that use a set of NSIndexPath are always called, but the NSIndexSet versions are not.
On the other side of the mountain, selection cells in the table view always updates the bound property, so the collection view gets notified that the selectionIndexes have changed.
How can I make NSCollectionView work better? I didn't have this problem when I was using IKImageBrowserView instead of NSCollectionView. Seems silly that Apple added all the stuff to support multiple sections, but didn't bother to keep things working with regard to the binding.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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