Skip navigation.
 
mlRe: Split slider control?
FROM : Ryan Stevens
DATE : Wed Nov 24 20:53:31 2004

On Nov 24, 2004, at 9:35 AM, Jonathan del Strother wrote:

> I need a split slider control - essentially an NSSlider with 2 knobs,
> used to specify a range within the slider.  Is there any freely
> available control that would suit my purpose, or am I going to have to
> write my own?
>
> If it's the latter, any thoughts on how to do it would be much
> appreciated - I have very little experience with extending/subclassing
> existing Cocoa controls.
>
> Cheers,
> Jon
>


I think the easy way would be to use two NSSliders side by side or one
above the other. If you need it to look like it's all one slider you
could subclass NSSliderCell and draw the bar without an end cap.

That won't allow the user to pull the knob of one slider over the other
but if you don't want/need that then I think this is the way to go.

Related mailsAuthorDate
mlSplit slider control? Jonathan del Strot… Nov 24, 18:35
mlRe: Split slider control? Douglas A. Welton Nov 24, 20:43
mlRe: Split slider control? Ryan Stevens Nov 24, 20:53
mlRe: Split slider control? Andrew Farmer Nov 26, 00:05