Re: Differences between Cocoa and Cocoa-Java Projects/Targets
Re: Differences between Cocoa and Cocoa-Java Projects/Targets
- Subject: Re: Differences between Cocoa and Cocoa-Java Projects/Targets
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 17 Feb 2005 00:39:35 +0000
On 17 Feb 2005, at 00:07, Lucien W. Dupont wrote:
On 2/16/05 10:35 AM, Finlay Dobbie wrote:
On Thu, 17 Feb 2005 03:52:01 +1300, Phil <email@hidden>
wrote:
Hi,
I'm building a primarily Obj-C Cocoa application, but using a Java
library (via. the bridge), so I've created a Cocoa-Java project.
Just so you know, the bridge is obsolete and deprecated and you
shouldn't rely on it. Use JNI instead.
I hadn't heard this - do you have a link or such that describes this,
and
when it's going to happen?
The bridge documentation was under the "Legacy" section and now appears
to have fully disappeared. You would be hard pressed to find any
reference to the fact that NSClassFromString works with Java class
names on the Apple site. DTS also recently confirmed this in an e-mail
to me (this e-mail was devoid of any NDA headers, so I'm assuming it's
meant to be public knowledge):
The Java bridge has been deemed a "legacy" technology for quite some
time now. We recommend using JNI to interface Cocoa and Java, as it
is the standard native interface provided by Sun. The JNI headers can
be found in JavaVM.framework.
JNI - Java Native Interface
http://java.sun.com/j2se/1.4.2/docs/guide/jni/
Also, the SimpleJavaLauncher sample demonstrates how to start up a JVM
from a native app, if you are starting off in Cocoa.
simpleJavaLauncher
http://developer.apple.com/samplecode/simpleJavaLauncher/
simpleJavaLauncher.html
I don't know what you mean by "when it's going to happen"...
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden