Re: Suggestions for forcing NSSlider to some values, without tickmarks
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