0

I wanted to drop files in status bar app icon, so I've found implementation code that allows use NSView as NSStatusItem. I'm trying to set image directly to view, but nothing happens I still getting empty status bar item. The menu works fine, just can't set the icon image.

NSImageView *imageView = [[NSImageView alloc] init];
[imageView setImage:[NSImage imageNamed:@"static.png"]];
[self addSubview:imageView];
Evg Min
  • 1
  • 1

0 Answers0