Reputation: 55
I am trying to call native functions from the ApplicationServices framework on a mac using JNA. However, the return type of the function I want to use as wel as its parameters are as far as I can tell unsimiliar to anything in Java, and I don't know how to map them.
The function I want to use:
CFArrayRef CGWindowListCopyWindowInfo(
CGWindowListOption option,
CGWindowID relativeToWindow);
I have no idea how to map any of these. Any help is greatly appreciated.
Upvotes: 1
Views: 263
Reputation: 10069
Look at the rococoa project (http://rococoa.java.net), which addresses mapping various types specific to OSX.
Upvotes: 3