• 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
How to determine an NSSlider's thumb position onscreen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSTextAttachment
  • Next by Date: Re: NSTextAttachment
  • Previous by thread: Re: NSTextAttachment
  • Next by thread: Perplexing crash in iOS app, on observing an NSOperation
  • Index(es):
    • Date
    • Thread