ahmet alp balkan
ahmet alp balkan

Reputation: 45214

Popover for an OS X status bar app on NSStatusItem (MAAttachedWindow alternatives?)

I am trying to show some message pointing to my Mac OS X application icon living only in the status bar:

I believe MAAttachedWindow was a thing 7-8 years ago but I couldn't even get its demos working and it's not written for ARC.

I'm wondering if there's an open source library or some code snippet doing the same thing people use these days. Even finding the coordinates of my status bar icon is a mystery to me at this point.

I don't want to show popover when user clicks on my icon, I will just show it to give a heads up to the user that app is over there in the status bar.

Upvotes: 3

Views: 1549

Answers (2)

ahmet alp balkan
ahmet alp balkan

Reputation: 45214

The solution was creating my own NSStatusItem, which you can find an example of here:

http://shaheengandhi.com/using-nspopover-with-nsstatusitem/

Upvotes: 1

sudo rm -rf
sudo rm -rf

Reputation: 29524

I would suggest using NSPopover if possible, but if that does not suit your needs you could always try RBLPopover or SFBPopovers. If you decide to go with NSPopover, you might want to check out AXStatusItemPopup which seems promising, although I have not personally tested it.

Upvotes: 5

Related Questions