How to determine an NSSlider's thumb position onscreen?

  • Hi all,

    Anyone know how to get the screen position of an NSSlider's thumb?

    NSSliderCell has a method knobRectFlipped: which works perfectly, though I note the docs say "You should never invoke this method explicitly. It’s included so you can override it".  I don't see any other way though...

    (Since someone will ask: I want to position a custom floating window adjacent to a slider's thumb when the user drags the thumb.  The window would act a bit like a tool tip, showing the numerical value of the thing being adjusted.  I suppose I could abuse the tooltip, but I'm already using it to explain what the control is for.)

    Thanks,

    --
    ____________________________________________________________
    Sean McBride, B. Eng                <sean...>
    Rogue Research                        www.rogue-research.com
    Mac Software Developer              Montréal, Québec, Canada
previous month july 2012 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