I have a app with NSStatusItem on the menu bar. Now i want to use shortcut keys to call up the NSWindow which should be displayed right bellow the NSStatusItem. With mouse click i just get the position of status item with:
CGRect eventFrame = [[[NSApp currentEvent] window] frame];
But i have no idea how to get this position if i use shortcut to call the window. The NSStatusItem has a custom view.
A similar question is here How to get the on-screen location of an NSStatusItem but no one could give a solution.