Let's say I have a code like this...
- (id) init {
...
self.myImage1 = [NSImage imageNamed:@"some_image_name"]; // setter retains
...
}
- (void) setStatusItemImage
{
[self.statusItem setImage:self.myImage1];
}
I also want to animate the status item so I created 6 variants of the "updating" status item icon and loop it over an NSTimer, with target method similar to the above. Questions are:
- How can I efficiently assign an image? e.g. is it OK if I use a retained / preloaded NSImage?
- Is there a way to animate the status item in a more efficient way? I don't know any Core Animation stuff, so please bear with me.