I have a question about the NSStatusItem
for cocoa in mac osx. If you look at the mac app called snippets (see the movie at http://snippetsapp.com/). you will see that once you clicked your statusbar icon that a perfectly aligned view / panel or maybe even windows appears just below the icon.
My question is ... How to calculate the position to where to place your NSWindow
just like this app does?
I have tried the following:
- Subclass
NSMenu
- Set the view popery for the first item of the menu (Worked but enough)
- Using addSubview instead of icon to
NSStatusItem
this worked but could not get higher then 20px