Re: Creating a custom rating control
Re: Creating a custom rating control
- Subject: Re: Creating a custom rating control
- From: Justin Anderson <email@hidden>
- Date: Sun, 9 Oct 2005 11:54:22 -0400
You could make a nsmatrix of buttons with on/off states of star/no
star and add a little logic code to turn everything to the left on
and everything to the right off when a button gets clicked. Depending
on how much bindings-savvy-ness you're looking for, it should be a
pretty simple control to make.
Justin
On Oct 8, 2005, at 7:55 AM, Dario Mèndez Musicò wrote:
Hello everyone,
Proceding in the development of my application I stumped in the
need of making it Panther-compatible, but I'm actually using
NSLevelIndicator controls to display a rating in a scale from 10 to
10.
My idea was to replace that with a custom control/view that uses a
custom image (or even better, as many images as the rating is) to
display it's value.
My problem is that I don't know how to achieve this, in particular
I'm asking myself how to make it bindings-savvy.
Has anyone got a guide/tutorial or may point me towards the right
direction?
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden