Hi Jerry,

there are two methods which are used with NSStatusItem:

- (void)setImage:
- (void)setAlternateImage:

They both do exactly what you think they would. The setImage method just sets 
the standard image and alternate image is when it's activated. They both take 
an NSImage

See the reference code: 
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSStatusItem_Class/Reference/Reference.html

Cheers
Simon


On 8 Dec 2013, at 3:47 pm, Jerry Krinock <je...@ieee.org> wrote:

> How can I make my app’s Status Item (“menulet", right side of menu bar) have 
> a different icon than its icon shown in the Dock and Finder?
> 
> I cannot find any mention of this in “Status Item Programming Topics”, and 
> tests indicate that it simply uses the same .icns resource indicated by 
> CFBundleIconFile in Info.plist.  But I’ve seen other non-Apple apps do it, so 
> apparently it can be done.
> 
> Thanks,
> 
> Jerry Krinock
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/smaurice%40mac.com
> 
> This email sent to smaur...@mac.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to