I’m using JNA to call Carbon APIs. The particular API call that I want to call takes
a CFBooleanRef as a parameter. The values, kCFBooleanTrue and kCFBooleanFalse, are
declared as direct extern references in the header files.
How can I get references to those two values on the Java side, so that I can pass the values
to the API call ?
Well, as this hasn’t gotten any answer, just putting down the solution I came up with, in case anyone else needs to do this:
I ended up using Rococoa to implement my own version of NSNumber, so that I could call numberWithBool method in it, to get an instance of a NSBoolean. Which can then be used as a CFBoolean.