Re: Custom NSSlider
Re: Custom NSSlider
- Subject: Re: Custom NSSlider
- From: Stephen Blinkhorn <email@hidden>
- Date: Thu, 16 Jun 2011 10:42:51 -0600
On 15 Jun 2011, at 19:18, Nick wrote:
Hello
I am wondering if there are any free custom NSSlider controles
available
with changed knob and trackbar images?
The ones similar to QuickTime Player and iTunes (for a player
application).
Does everyone implement them from scratch by subclassing the cell
class?
I make fancy slider controls using a custom 'cell-less' NSControl.
Using this approach you can do all your drawing in drawRect and
override mouseDown: mouseUp: mouseDragged: etc to behave how you want.
To get actions working you'll need to add this method:
+(Class)cellClass {
return [NSActionCell class];
}
Stephen
Thank you
_______________________________________________
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
_______________________________________________
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