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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to