• 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: Current tick mark index of NSSlider?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current tick mark index of NSSlider?


  • Subject: Re: Current tick mark index of NSSlider?
  • From: Glen Simmons <email@hidden>
  • Date: Mon, 20 Dec 2004 17:34:46 -0600

On 20 Dec, 2004, at 4:27 PM, Andreas Mayer wrote:

Am 20.12.2004 um 23:04 Uhr schrieb Glen Simmons:

Am I missing something?

You do have: - the minimum value (min) - the maximum value (max) - the number of tick marks (n) - the actual value (a)

You want:
- the tick mark corresponding to the actual value (x)

x = (a-min)/((max-min)/n)

Right?

Yes, I'm a little slow today. Should've thought this one through. BTW, the above should be:
x = (a-min) / ((max-min) / (n-1))


Thanks,
Glen

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Current tick mark index of NSSlider? (From: Glen Simmons <email@hidden>)
 >Re: Current tick mark index of NSSlider? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: NSArrayController and threading
  • Next by Date: Re: Passing arguments to threads?
  • Previous by thread: Re: Current tick mark index of NSSlider?
  • Next by thread: Toolbar bug?
  • Index(es):
    • Date
    • Thread