Alternative Circular Slider control

  • Hi, I'm looking for a circular-slider widget control for entering angles (from -360 to 360 degrees). I tried the one from http://www.sticksoftware.com/software/CircularSlider.html last night; it looks ideal but it has some significant problems. It's a NSView subclass, not an NSControl so you cant connect it to any actions in IB. There is no support for bindings and when I try to use it in a new XCode 2.4 app, it appears 'greyed out' and unresponsive (it works fine in the sample app). I'm not sure what's up with it. Has anyone else had success with this control?

    Can you recommend an alternative? Preferably one that has an IB palette, is easy to use and supports bindings. I'm happy to give the auther credit in my app.


    ---------------------------------
    Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail.
  • > Hi, I'm looking for a circular-slider widget control for entering
    > angles (from -360 to 360 degrees).

    Aside from the large size being blocky, what's wrong with NSSlider
    set to 'circular'?

    Stephen Deken
    <stephen.deken...>
  • On 10/10/06, Ari Benzane <aribenzane...> wrote:
    > Simple answer? It looks like crud. Plus, even when set to large, it's too
    > small.

    So subclass NSSliderCell.

    Override -cellSizeForBounds: and -drawingRectForBounds: to allow it to
    be as large as you want it to be.  Override -drawKnob: and draw it
    however you want.  You get all of the mouse tracking stuff taken care
    of for you.  When you're finished, you can either poseAsClass to
    override it everywhere in your application or just swap it into
    particular controls using NSControl's -setCell: message.

    Stephen Deken
    <stephen.deken...>
  • On 11 Oct 2006, at 18:04, Stephen Deken wrote:

    > On 10/10/06, Ari Benzane <aribenzane...> wrote:
    >> Simple answer? It looks like crud. Plus, even when set to large,
    >> it's too
    >> small.
    >
    > So subclass NSSliderCell.
    >
    > Override -cellSizeForBounds: and -drawingRectForBounds: to allow it to
    > be as large as you want it to be.  Override -drawKnob: and draw it
    > however you want.  You get all of the mouse tracking stuff taken care
    > of for you.  When you're finished, you can either poseAsClass to
    > override it everywhere in your application or just swap it into
    > particular controls using NSControl's -setCell: message.
    >
    > Stephen Deken
    > <stephen.deken...>

    Yes this is what Peter's implementation does. I'll need to
    investigate further.
    Send instant messages to your online friends http://uk.messenger.yahoo.com
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today