Re: NsCollectionView Selection
Re: NsCollectionView Selection
- Subject: Re: NsCollectionView Selection
- From: Sandro Noel <email@hidden>
- Date: Mon, 19 Jan 2009 23:10:50 -0500
Thank you Graham,
But I'm not looking for the lazy approach,
I really want the app to be good looking, I like Mac apps because they
are fancy, I want my app to be fancy too :)
Besides I'm learning, so I might as well learn to do it the right way :)
that's why i ask :))
So i hear that if i want something to look good i have to subclass it ?
Sandro Noel.
On 19-Jan-09, at 10:50 PM, Graham Cox wrote:
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