Search code examples
objective-ccocoamacosnsprogressindicator

How to check if a NSProgressIndicator is currently animated?


NSProgressIndicator has methods called startAnimation: and stopAnimation:, but no method that I can find to check the state (whether it is currently animating or not). How would you do it?


Solution

  • You could just keep a BOOL value somewhere in your class that you set to YES or NO when you start and stop the animation respectively.