Selection in NSCollectionView
Selection in NSCollectionView
- Subject: Selection in NSCollectionView
- From: Rick Mann <email@hidden>
- Date: Wed, 3 Sep 2008 16:05:40 -0700
I'm making a window similar to IB's Library palette. The middle view
is an NSCollectionView, bound to the selection of a tree controller
running the top view. It draws fine.
However, I don't seem to be able to change the selected item in the
collection view. A third view, bound to the NSArrayController that
runs the collection view, shows the values in the first object in the
collection view. But if I try to click on the second item, nothing
happens.
I read some stuff online that suggested I need to write my own drawing
code to show the selection highlight, but lacking that shouldn't keep
the collection view from handling clicks and selecting different
items, should it?
My NSCollectionItemView is an NSView containing a custom view and two
labels. All three of these show the correct values. The CollectionView
has "selectable" set.
What am I missing?
TIA!
--
Rick
_______________________________________________
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