• 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: Graham Cox <email@hidden>
  • Date: Fri, 02 Mar 2012 11:12:48 +1100

On 02/03/2012, at 11:00 AM, Sean McBride wrote:

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


Look at NSSliderCell. What I'd suggest is setting a single tick mark, and have your subclass treat it as a centred tick mark. Your subclass might not even draw it, but the slider would act as if it were there. I would imagine this would require the minimum of overrides, but I haven't studied it any more closely than that.

--Graham


_______________________________________________

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


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>)
 >Re: Suggestions for forcing NSSlider to some values, without tickmarks (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Who is responsible for removing observers in longer key paths [solved]
  • Next by Date: Re: Suggestions for forcing NSSlider to some values, without tickmarks
  • 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