How to determine an NSSlider's thumb position onscreen?
How to determine an NSSlider's thumb position onscreen?
- Subject: How to determine an NSSlider's thumb position onscreen?
- From: Sean McBride <email@hidden>
- Date: Mon, 16 Jul 2012 18:03:15 -0400
- Organization: Rogue Research Inc.
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 email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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