> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to