Re: NSCollectionView selection behavior is insanely bad
On Apr 26, 2017, at 18:13, Greg Westonwrote: >> Instead of doing the right thing when shift-clicking (selecting a range from >> the anchor), it simply adds/removes the clicked item to/from the selection. >> That's unlike pretty much any Apple matrix-of-items selection behavior ever. > > You mean it selects like Finder icon views have since 1984? Like a collection > of discrete items instead of a continuum? Yes, and since it's a replacement for other non-Finder-icon-view type things (e.g. IKImageBrowserView), its the wrong behavior. That's why I said "matrix of items". Finder icon view is not that—they can be arranged with complete disregard to columns and rows. Steve via iPad ___ 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
Re: NSCollectionView selection behavior is insanely bad
> Instead of doing the right thing when shift-clicking (selecting a range from > the anchor), it simply adds/removes the clicked item to/from the selection. > That's unlike pretty much any Apple matrix-of-items selection behavior ever. You mean it selects like Finder icon views have since 1984? Like a collection of discrete items instead of a continuum? ___ 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
NSCollectionView selection behavior is insanely bad
Since IKImageBrowserView is deprecated and buggy in recent versions of macOS, I've been switching to NSCollectionView. Holy crap, does its selection behavior suck. Instead of doing the right thing when shift-clicking (selecting a range from the anchor), it simply adds/removes the clicked item to/from the selection. That's unlike pretty much any Apple matrix-of-items selection behavior ever. I've been trying to make it right by subclassing NSCollectionView to override mouseDown:, mouseDragged:, mouseUp:, setSelectionIndexPaths:, selectItemsAtIndexPaths:scrollPosition:, deselectItemsAtIndexPaths:, selectAll:, and deselectAll:, as well as keyDown:, keyUp:, and tons of the moveUp/Down/Backward/Forward*: methods. Has anybody done this, or just lived with the half-assed default implementation? Anybody know of a free public implementation or even a complete replacement for NSCollectionView that handles shift-key selection the right way? Coupled with the other bugs/problems I've asked about and not gotten any answers to, there's got to be something better out there than NSCollectionView. -- 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