• 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: NSCollectionView file promise drag & drop and selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCollectionView file promise drag & drop and selection


  • Subject: Re: NSCollectionView file promise drag & drop and selection
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 1 Oct 2010 09:51:42 -0600

On Oct 1, 2010, at 1:19 AM, Markus Spoettl wrote:

> Are you sure that is the case? My collection views work the same on Leopard and Snow Leopard.

Yes, I'm sure. I just ran the SourceView sample application on two different computers, one running Leopard and the other running Snow Leopard. On Snow Leopard, clicking once on an item in the collection view selects it, but I have to drag the mouse to select items on Leopard.

> Sometimes confusion arises around how the selection status propagated to the view representing the collection view item. One way to reliably do this is by subclassing NSCollectionViewItem and overriding -setSelected: and letting the view that represents the item know the selection status has changed. The question is is how your view gets notified about selection changes of the item it represents?

I'm already doing this in my app. I placed a breakpoint on -setSelected:, and on Leopard, it is only called when I drag the mouse. It is not called when I click with the mouse, except to unselect the currently selected item.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: 
 >Re: NSCollectionView file promise drag & drop and selection (From: Markus Spoettl <email@hidden>)

  • Prev by Date: QTMovie raw data
  • Next by Date: Re: QTMovie raw data
  • Previous by thread: Re: NSCollectionView file promise drag & drop and selection
  • Next by thread: Re: Continuously running daemon process CFConstantStringRefs build up over time
  • Index(es):
    • Date
    • Thread