• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rotate a standard Cocoa control?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotate a standard Cocoa control?


  • Subject: Re: Rotate a standard Cocoa control?
  • From: Kevin Meaney <email@hidden>
  • Date: Sun, 10 May 2015 10:25:23 +0100

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 <email@hidden> wrote:
>
> On May 9, 2015, at 23:20:08, Graham Cox <email@hidden> 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 (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


_______________________________________________

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


References: 
 >Rotate a standard Cocoa control? (From: Jerry Krinock <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Robert Martin <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Jerry Krinock <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Steve Mills <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Rotate a standard Cocoa control?
  • Next by Date: NSUndoManager.prepareWithInvocationTarget:
  • Previous by thread: Re: Rotate a standard Cocoa control?
  • Next by thread: Re: Rotate a standard Cocoa control?
  • Index(es):
    • Date
    • Thread