Re: NSCollectionView file promise drag & drop and selection
Re: NSCollectionView file promise drag & drop and selection
- Subject: Re: NSCollectionView file promise drag & drop and selection
- From: Markus Spoettl <email@hidden>
- Date: Fri, 1 Oct 2010 00:19:36 -0700
On Sep 30, 2010, at 4:25 PM, Nick Zitzmann wrote:
> I searched for answers for these two questions and did not find anything pertinent:
>
> 1. I noticed that, on Snow Leopard, when the user clicks on a collection view item, the item is selected, but it doesn't do this on Leopard. Instead, on Leopard, the only way to select an item is to click and drag to select items.
Are you sure that is the case? My collection views work the same on Leopard and Snow 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?
Just guessing here but maybe something in your setup accidentally triggers a re-draw of the view after its item's selection status has changed and that event doesn't happen on Leopard so the view's representation remains the same.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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