Re: JavaBridge
Re: JavaBridge
- Subject: Re: JavaBridge
- From: Maurice Parker <email@hidden>
- Date: Tue, 04 Dec 2001 19:12:08 -0600
Andy,
On 12/4/01 1:05 PM, "Andy Belk" <email@hidden> wrote:
>
Hi Julien,
>
>
> Is it just me or isn't JavaBridge really working???
>
>
Definitely just you ;-)
Definitely me too? ;-)
Here is an example one problem I've had:
http://www.vineyardenterprise.com/BlackMoon.tar.gz
This is an initial attempt to port the SWT toolkit from Eclipse
(www.eclipse.org) to the Mac. When you run the application everything is
fine until you try to resize the window quickly and repeatedly. Just build
& run the application, grab the resize control, jiggle your mouse, and watch
it crash.
The problem appeared when I started using the Notification Center in the
Shell class of the project.
>
>
> I'm trying to do my "first, not too big, not too complex cocoa
>
> application" using Java.
>
>
Since it's your first Cocoa Java app, it could possibly be that
>
you are missing some small, subtle yet required piece of code,
>
or something like that. CocoaJava is not perfectly transparent
>
to the Java programmer - there are some idioms that don't map
>
exactly into Java (categories) and vice-versa (delegates should
>
technically be weak references, but Objective-C has no explicit
>
notion of that) and some code you need to use that you don't in
>
Swing (AutoreleasePools for one).
I've been reading Cocoa documentation quite thoroughly and I'm not having
any luck learning about how to deal with CocoaJava's subtle quirks. For
example the documentation on AutoreleasePools is way thin. When and why
should I use them?
Any pointers on how I should figure that I'm doing something wrong?
>
>
You should be able to write a functional Cocoa app using Java.
Is it possible to write a very large and complex application using the Cocoa
API's from Java? My goal is to run Eclipse on OS X. If the JavaBridge is
too fragile, I'll have to shift my development efforts toward JNI & Carbon
to get SWT to work. Cocoa would definitely be more fun. :-)
>
>
> An answer from JavaBridge team would be greatly appreciated to
>
> clarify the situation (please, tell me: "Yes, those symptoms
>
> are induced by some horrible bugs, but don't worry, next OS X
>
> release will fix them all!!!"). I just want to be able to work.
>
>
Hope this helps,
I too was beginning to wonder if the JavaBridge was a fully supported
technology for OS X. It's good to hear from someone at Apple.
If I strain the JavaBridge beyond what may have been covered in Apple's
internal tests, is there someone there someone that will shore up the
'Bridge?
-Maurice