Re: Exception in IKImageBrowserView in macOS 10.13 GM
Re: Exception in IKImageBrowserView in macOS 10.13 GM
- Subject: Re: Exception in IKImageBrowserView in macOS 10.13 GM
- From: Steve Mills <email@hidden>
- Date: Sun, 05 Nov 2017 21:42:25 -0600
On Nov 5, 2017, at 11:53:07, Jim Crate <email@hidden> 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 (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