• 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: Suggestions for forcing NSSlider to some values, without tickmarks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestions for forcing NSSlider to some values, without tickmarks


  • Subject: Re: Suggestions for forcing NSSlider to some values, without tickmarks
  • From: Sean McBride <email@hidden>
  • Date: Thu, 01 Mar 2012 19:00:41 -0500
  • Organization: Rogue Research Inc.

On Fri, 2 Mar 2012 10:31:29 +1100, Graham Cox said:

>I guess what might be nice is a tendency for it to "snap" to the zero
>position when the slider is dragged close to it.

Yes, that's what I'm looking for.

> You might be able to do
>that with a standard slider by manipulating the values close to the zero
>point, but to get this really working well you'd probably want a
>subclass of NSSliderCell

I was expecting to have to subclass.

>you'd probably also want to have some sort of
>override, such as when the option key is pressed, otherwise it will be
>impossible to set values very close to 0, such as 1.

Good idea, though not crucial in my use case.

Any suggested subclassing points?  That's where I'm stuck really...

--
____________________________________________________________
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


  • Follow-Ups:
    • Re: Suggestions for forcing NSSlider to some values, without tickmarks
      • From: Graham Cox <email@hidden>
    • Re: Suggestions for forcing NSSlider to some values, without tickmarks
      • From: Graham Cox <email@hidden>
References: 
 >Suggestions for forcing NSSlider to some values, without tickmarks (From: Sean McBride <email@hidden>)
 >Re: Suggestions for forcing NSSlider to some values, without tickmarks (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: iPhone search and notification widgets
  • Next by Date: Re: Who is responsible for removing observers in longer key paths [solved]
  • Previous by thread: Re: Suggestions for forcing NSSlider to some values, without tickmarks
  • Next by thread: Re: Suggestions for forcing NSSlider to some values, without tickmarks
  • Index(es):
    • Date
    • Thread