objective c - How to make part of an NSSlider stop at tick marks? -


I have to keep an anslider which is not a picture to last, except for the last two. This is the same behavior of the slider in System Preferences -> Energy Saver -> Computer Sleep. Any ideas on how to do this?

I do not know in an easy way, but if it comes down that you have your own NSSliderCell You can create subclasses and override some or all of these three ways:

  - (BOOL) startTrackingAt: (NSPoint) See in the Start Page: (NSView *) controlView; - (BOOL) Continue tracking: Last point on (NSPoint): (NSPoint) Current page view: (NSView *) controlView; - (zero) StopTracking: (NSPoint) at the last point: (NSPoint) Stoppoint Invoice: (NSVUI) * Controlviews MouseIsup: (BOL) flag;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -