• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Selection in NSCollectionView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Selection in NSCollectionView (From: Rick Mann <email@hidden>)
 >Re: Selection in NSCollectionView (From: Quincey Morris <email@hidden>)
 >Re: Selection in NSCollectionView (From: Markus Spoettl <email@hidden>)
 >Re: Selection in NSCollectionView (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Creating a runloop to handle specific mouse events
  • Next by Date: Re: Why do all these methods of measuring string metrics with font attribute fail?
  • Previous by thread: Re: Selection in NSCollectionView
  • Next by thread: cmd+w and File menu
  • Index(es):
    • Date
    • Thread