In OSX, how to determine the position of windows and which window is active?

I am working on an idea for an OSX window manager type similar to Cinch or SizeUp . To do this, I need to be able to determine the positions of various windows and which window is active. Some kind of callback with an active window change will also be useful, as well as for processing several screens and several spaces.

I put up with the fact that I probably need to learn Objective-C for this, but if there is a way to do this type of thing with Java, it will be especially surprising.

Can someone point me to a suitable place in the OSX API for these things?

+3
source share
1 answer

API , .

+1

Source: https://habr.com/ru/post/1741791/


All Articles