views:

47

answers:

1

Is it possible to focus a NSWindow by its CGWindowID? And yes, how?

I need to focus a Window of another application, but I have only its CGWindowID and I can only find sample code about retrieving the ID, but not how to focus a Window by its ID.

A: 

Okay, got it to work via the Accessibility API. What a mess.

JustSid