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: Rob Petrovec <email@hidden>
- Date: Sun, 05 Nov 2017 14:01:15 -0700
> On Nov 5, 2017, at 10:53 AM, Jim Crate <email@hidden> wrote:
>
> On Nov 5, 2017, at 11:56 AM, Steve Mills <email@hidden> wrote:
>>
>> On Nov 5, 2017, at 10:23:09, Jim Crate <email@hidden> wrote:
>>>
>>> The Finder icon view works the same way, and has since at least 10.10 or
>>> so. When I initially replaced the IKImageBrowserView in a client’s app with
>>> NSCollectionView, I was unhappy that shift-clicking didn’t extend the
>>> selection like it did before. It was the fact that Finder no longer worked
>>> that way in 10.10 or 10.11 that made me not bother to try to figure out how
>>> to do it. In the end, it was apparently something the users of the app
>>> never really used or needed.
>>
>> Yes, but the Finder icon view isn't totally comparable with a replacement
>> for IKImageBrowserView. Finder icons can be arranged willy nilly - they
>> don't need to be in organized rows and columns the way standard
>> NSCollectionViews are. So it makes sense that Finder doesn't do it that way,
>> although it *is* totally annoying that it doesn't even when you've
>> auto-arranged them into perfect rows and columns.
Before 10.11 or 10.10, Finder used IKImageBrowserView for it’s Icon
View and didn’t do the shift selection you are describing. It hasn’t done
shift select that way since at least 10.3, if memory serves.
> True. And Photos does still select all items between when shift-clicking.
>
> 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.
Yeah, that should work nicely if you want that behavior.
—Rob
_______________________________________________
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