Nick Zitzmann wrote:
So I found this, which has an answer that is not "use the bridge" but I haven't tried it myself: <http://stackoverflow.com/questions/ 1822549/calling-java-library-from-objective-c-on-mac>
One of its answers is "use TCP/IP". I have done that, and it works well. Same-process JVM via JNI's invocation API, or different process running /usr/bin/java via NSTask. For security, confine the network to loopback interface (lo0), which is quite easy to do in Java.
I chose JSON as the data format: simple, compact, readily available libs for Cocoa and Java. I also used CocoaAsyncSocket on the Objective-C side, which simplified use of sockets and streams. YMMV.
-- GG _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
