Re: NSSliderCell question
Re: NSSliderCell question
- Subject: Re: NSSliderCell question
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 23 Jul 2009 21:29:57 +0200
Le 23 juil. 09 à 21:09, email@hidden a écrit :
I am employing an NSSliderCell in my table view, and I want to slow
down the rate of change or increase the resolution of change using a
modifier key like commands as I drag. This is employed in a few
audio programs to assist a mixer in fine tuning either volume or pan
when mixing. Where do I start? I have bound my NSSliderCell to a
NSNumber in my NSObjectController. Can anyone think of a way that I
could modify the delta of change? Would I have to do this using a
NSSliderCell subclass? Any thoughts?
Just an idea. (not tested at all)
A possibility may be to override setDoubleValue: or whatever is used
to set the cell value, and check if the current event ([NSApp
currentEvent]) is a drag with ctrl down, and if this is the case
compute the delta between the current value and the new value and
reduce it proportionally before calling the super implementation.
_______________________________________________
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