I’m trying to use a horizontal slider in my mac app, by default the slide values is floating point number, because i need to display the value again as text in a label(binding using user defaults), so is there a way to make slider to output integer rather than floating point number?
Share
You can’t make the slider not think in floating-point, but you can make it give you only whole numbers. Set its number of tick marks to ((max value – min value) + 1), and set it to only stop on tick marks.