I am trying to get the location on the NSStatusItem screen so that I can click on this area using the code as shown below. I do this so that my users can press the hotkey to see the menu.
event = CGEventCreateMouseEvent(NULL, kCGEventLeftMouseDown, newLocation, kCGMouseButtonLeft);
CGEventPost(kCGHIDEventTap, event);
CFRelease(event);
Does anyone know how to get a seat? I tried to try ideas and look for days and found some ideas, but none of them seem to work in a leopard / snow leopard
NSStatusItem uses NSMenu, not a custom view.
Craig source
share