Hello !
I'm having a problem using j2objc for my project.
Some translated classes are using classes that I have implemented in native Objective-C.
In those classes, I'm returning JavaLangBoolean (example : I'm returning wether or not a NSDictionnary contains a key).
But sometimes the translated classes use this :
if ([myDictionnary containsKeyWithMyObject:theObject])
instead of :
if ([[myDictionnary containsKeyWithMyObject:theObject] booleanValue])
As a result, and because I'm returning an instance of JavaLangBoolean (that contains the BOOL value), if (...) returns YES, because my instance of JavaLangBoolean isn't nil, BUT the bool value in it is NO.
I don't know if i'm very clear, but if somebody can help me with this, it's been 1 week I'm struggling with this functionality ...
Thanks in advance for anyone that has an answer about that !
Cheers ;)