Can I access the Cocoa Accessibility API using Java on OSX?

I need to write an application that can observe and control the positions of windows on the screen, and I was told that this requires the use of the Cocoa Accessibility API .

Unfortunately I'm a Java programmer and Objective C scares me;) Is it possible to access this Cocoa API from Java? I know that when Apple cared about Java, it supported "bridge" before cocoa, but I'm not sure if that does what I want.

Oh, and my IDE is Eclipse, if that matters.

+2


a source to share


2 answers


Yes, Java bridge disappeared completely in 10.6.



Objective-C really isn't a big deal to read code or do some lessons. Actually Java has compiled it a lot.

+4


a source


Java Bridge is no longer supported by Apple. Don't know if you can access the Accesibility API with the old "bridge".



But you can definitely write your own Java wrapper classes using JNI to get access to what you need.

+1


a source







All Articles