I am sure it’s something easy, and I am not looking to the right documentation.
I need to get information about the application that handles the active window. The code I need to write needs to intercept some custom gestures, and return to the application an event that depends from the application itself.
There’s the
NSWorkspaceclass from which you can get a dictionary with information about theactiveApplication. That application usually owns the “key” window.Edit: For apps targeting 10.6 or later,
activeApplicationis deprecated. Here’s the new way to go: