JNI-Objective C issue

Joined
Jan 24, 2011
Messages
1
Reaction score
0
Points
1
Hi

I am new to Objective C and I have created a small POC which reads a file and gives the result. I am using JNI with Objective C for this. When I compile my code, it says "initialization makes pointer from integer without a cast" at this point of code.
Code:
NSString *fileStringPath = JNFJavaToNSString(env,filePath);
where filePath is a jString and a parameter.
and another warning "assignment makes pointer from integer without a cast" at this point of code
Code:
resultString =JNFNSToJavaString(env,myNSString);

Please help as I need to create a dylib for this.

regards
Sony
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Welcome to the Mac Forums.

Note: Your post was moved to the correct forum.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top