Just as my title mentions, I want to use NSImageView, To "animate" an image, but not loop when it reaches the end of its animation.
How to animate a GIF image in Cocoa and set it to not loop.
3.4k views Asked by Andrew Chang At
2
Just as my title mentions, I want to use NSImageView, To "animate" an image, but not loop when it reaches the end of its animation.
The infinite loop of a gif image is not a bad habit of the NSImageView, it is determined by a value (in Application Extension) within the gif image data. You can ask for that value by
But you can also set that value (before sending it to the
NSImageView
). If you want the animation to stop after one loop, do this: