Search code examples
nsimageviewnsstatusitemnsstatusbar

Adding both the title and image to an NSStatusItem


I've been trying to figure out how to add both text and an image to an NSStatusItem. Here is a mockup of what i'm trying to do:

http://cl.ly/GjTO

I've tried using the statusIetm.view and adding a subview, I've tried setting both the title and image property for fun even though I know that doesn't work. 'm not trying to add a a custom window the the Status Item, but the temperature and condition icon found in the first image. If anyone has any idea, I'd love to hear them.

Thanks


Solution

  • Try creating a custom NSView and setting it with [statusItem setView:myCustomView];