Re: Selection in NSCollectionView
Re: Selection in NSCollectionView
- Subject: Re: Selection in NSCollectionView
- From: Markus Spoettl <email@hidden>
- Date: Thu, 4 Sep 2008 01:38:05 -0700
On Sep 4, 2008, at 12:56 AM, Quincey Morris wrote:
The IconCollection sample code doesn't do this. If you drag over the
collection, you get a marquee rectangle that selects everything
inside it. I see no code to do this (beyond the hitTest override at
the individual view level), so I concluded that this behavior is in
NSCollectionView itself.
It is, the collection view updates the selection indexes and set its
collection view items' selected states accordingly (in which order I
don't know).
The puzzling part was that I could find no way to enable this
behavior in my own NSCollectionView, and I think that's (basically)
what the OP was saying too.
You get the marquee if you turn on multi-selection in the collection
view. Otherwise, only one item can be selected and I can see why
marquee selection makes little sense in that case.
No doubt I missed something obvious, but considering that prototype
NSCollectionItem bindings also appear to be broken currently, any
time spent fiddling with NSCollectionView felt to me like a waste.
Some things are broken (resizing will reset scroll bar positions,
automatic scroll bars will confuse the control completely, key-view
loop is broken, no control over animation). Before you suggest, I have
reported those and got zero response from Apple. I seriously hope
there is work going on behind those closed doors. It is a great
control despite its deficiencies - for what I use it anyway.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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