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 ([email protected])

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 [email protected]

Reply via email to