On Nov 5, 2017, at 11:53:07, Jim Crate <j...@quevivadev.com> wrote:
> 
> If you really wanted it, it seems like it would be relatively simple to track 
> the last item selected, and if shift is down in 
> 
> collectionView:didSelectItemsAtIndexPaths: 
> 
> then add all items between to the selection. Is there something I’m missing 
> that makes that unworkable? I’m not sure why I didn’t try that before, but 
> since nobody missed shift-selecting I never revisited it.

It's not that simple. There are many things that must happen to correctly do 
shift-extend and shift-shrink. The anchor must be remembered and cleared as the 
result of many different operations. Shift-arrowKeys must be handled in the 
same way, extending or shrinking the selection around the anchor. Trust me, 
I've put in hours and hours with a combination of an NSCollectionView subclass 
and a delegate. There are just too many things happening behind the scenes that 
Apple doesn't expose. The last time I worked on it, I was getting close, but 
still had walls to break down.

--
Steve Mills
Drummer, Mac geek

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to