• 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
Selection in NSCollectionView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Selection in NSCollectionView
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Message stack limitations
  • Next by Date: Re: NSOutlineView developer example
  • Previous by thread: Re: NSString/NSMutable String Concatenation
  • Next by thread: Re: Selection in NSCollectionView
  • Index(es):
    • Date
    • Thread