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

Re: NsCollectionView Selection


  • Subject: Re: NsCollectionView Selection
  • From: Graham Cox <email@hidden>
  • Date: Tue, 20 Jan 2009 14:50:21 +1100


On 20 Jan 2009, at 2:42 pm, Sandro Noel wrote:

When I select an element, there is no selection indicator to show the selected item.

True, you have to arrange this.

I've also looked at the example provided by apple, but they use and NSBox as the represented object view and
the transparent property to show selection, witch is kind of cheep.

The great advantage of this approach is that you can simply bind the "visible" property of the box to the selection and it just works. Cheap? Yes, that's what's good about it!


I was wondering, if i want to have a nice selection indicator, with the common colors of the current system
what is it that i have to do ?

You could use the custom NSBox approach and set its background colour to your system highlight colour. That would require a very minimal amount of code and no subclassing.


--Graham


_______________________________________________

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: NsCollectionView Selection
      • From: Sandro Noel <email@hidden>
References: 
 >NsCollectionView Selection (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: NSView behaves different on 10.4 vs 10.5?
  • Next by Date: Re: NsCollectionView Selection
  • Previous by thread: NsCollectionView Selection
  • Next by thread: Re: NsCollectionView Selection
  • Index(es):
    • Date
    • Thread