Re: Displaying live NSSlider value
Re: Displaying live NSSlider value
- Subject: Re: Displaying live NSSlider value
- From: "I. Savant" <email@hidden>
- Date: Tue, 17 Jun 2008 16:33:25 -0400
> I have an NSSlider and while the drag is in progress I would like to display the value in a text field. When the drag completes I would like the new value to get set in the user preferences and an action executed.
>
> As far as I can tell I'll have to set the slider to send its action continually in order to find out that value has changed. If that's so then I would need a way to determine whether the drag had completed and then behave appropriately.
This isn't really how the target/action mechanism is designed to
work. I remember seeing a far more elegant solution to this somewhere
recently - it was a custom NSSlider (or cell) that shows the value in
a small bubble above the handle while it's being dragged. If you used
such a control, you could avoid the "continuous" mode (setting the
actual value only when the drag is complete) while still giving your
users visual feedback of the "intended" value.
I tried to google around for this control but couldn't find it.
Perhaps you'll have better luck or some helpful soul will point the
way.
--
I.S.
_______________________________________________
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