How do I use an indeterminate status indicator as the image for an NSStatusItem?
Posted
by abrahamvegh
on Stack Overflow
See other posts from Stack Overflow
or by abrahamvegh
Published on 2010-04-25T21:24:30Z
Indexed on
2010/04/25
21:33 UTC
Read the original article
Hit count: 460
I have an application that is an NSStatusItem
.
It has a few different modes, each of which require an external process to be launched, during which the icon is simply highlighted, and appears to be frozen.
I want to use the -setImage
method (or reasonable facsimile) to display something along the lines of a "spinner" commonly seen in web applications and all over OS X.
Is there any native method for accomplishing this (e.g. some instance of NSProgressIndicator
?) or must I manually display an animation by cycling through a set of images?
In either case, how would I implement?
© Stack Overflow or respective owner