I have recently done something similar for an angular slider. Like Graham the 
control responds to the scroll wheel. But as well I allow changing of the value 
by holding down the command key when moving the mouse.

Tracking a circular path is much easier if you are not at the same time holding 
down the mouse button down. Also to make it easier for the user the value is 
determined purely from the angle which is calculated from the center of the 
control rather than the user having to hold the mouse exactly within the track 
whilst moving. I also use Dave DeLong’s maths parser to calculate the value 
from the position so that the relationship between position and value just 
requires the evaluation of the equation.

Kevin

> On 10 May 2015, at 05:38, Steve Mills <sjmi...@mac.com> wrote:
> 
> On May 9, 2015, at 23:20:08, Graham Cox <graham....@bigpond.com> wrote:
>> 
>> Me too, which is why it does :)
> 
> Heh, I didn’t notice that before. One thing I’d suggest: When the knob is set 
> to stop on tick marks, the scroll event should take it immediately to the 
> next/prev tick instead of waiting for the float value to get close enough to 
> the next tick value.
> 
> I also found it a bit disconcerting that the inc/dec action was dependent on 
> whether you mouseDown’d on the left or right side. I usually just aim for the 
> center, then click and drag, so that would make upward drags increase 
> sometimes and decrease other times. I kinda expect an upward drag to always 
> increase, because at this point, where a vertical drag will rotate a knob, 
> we’ve gone beyond trying to simulate a real-world action that’s easier done 
> with fingers, and instead going with an action that’s easier to do with the 
> mouse. Know what I mean?
> 
> --
> Steve Mills
> Drummer, Mac geek
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/ktam%40yvs.eu.com
> 
> This email sent to k...@yvs.eu.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to