Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Re: Mac port: Status Update

Hey,



>When I read through the Cocoa docs, I see two things:  the Java Frameworks
>(Application Kit and Foundation) and the Java Bridge.
>
>As I understand it, the Frameworks are a complete implementation of Cocoa
>represented as Java classes.

Not true.  You access the real Cocoa API's by using the Java Bridge.  There
is no pure Java version of the Cocoa API's.

>The Java Bridge is a technique you could use to access your own
Objective-C
>classes from Java, sort of like JNI.  So, unless you were going to write
>some Obj-C code, you would not be using the Java Bridge.

You use the Java Bridge everytime you access an Obj-C object from Java.  In
our case this would be everytime that we use a Cocoa API.

>You frequently refer to the Java Bridge, so is the issue, that the Java
>frameworks use the bridge internally as a way to call the existing Obj-C
>frameworks or are you actually using the bridge yourself?

I'm not using any custom Java Bridge mappings, just the ones provided by
Apple.

-Maurice



Back to the top