How can I get in Mac OS X \"global\" mouse position - I mean how can I in cocoa/cf/whatever find out cursor position even if it\'s outside the window, and even if my window
If you're not in cocoa land and an event tap is not appropriate for the situation,
CGEventRef event = CGEventCreate(nil); CGPoint loc = CGEventGetLocation(event); CFRelease(event);
works.