objective-cxcodecocoauiviewanimationnslevelindicator

Animating the NSLevelIndicator when the values change


Currently I have the following code to update the NSLevelindicator:

[self.headerIndicator selfFloatValue:heightValue]

Is there any way to animate the the level indicator between values when they update?


Solution

  • read this answer to animating sliders. i haven't tried it with level indicators but from the API docs it seems a viable option. the source code there can easily be adapt: NSSlider animation