Re: Alternative Circular Slider control
Re: Alternative Circular Slider control
- Subject: Re: Alternative Circular Slider control
- From: Ari Benzane <email@hidden>
- Date: Wed, 11 Oct 2006 21:09:52 +0100
On 11 Oct 2006, at 18:04, Stephen Deken wrote:
On 10/10/06, Ari Benzane <email@hidden> wrote:
Simple answer? It looks like crud. Plus, even when set to large,
it's too
small.
So subclass NSSliderCell.
Override -cellSizeForBounds: and -drawingRectForBounds: to allow it to
be as large as you want it to be. Override -drawKnob: and draw it
however you want. You get all of the mouse tracking stuff taken care
of for you. When you're finished, you can either poseAsClass to
override it everywhere in your application or just swap it into
particular controls using NSControl's -setCell: message.
Stephen Deken
email@hidden
Yes this is what Peter's implementation does. I'll need to
investigate further.
Send instant messages to your online friends http://uk.messenger.yahoo.com
_______________________________________________
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