Mixing Obj-C & Java in same Cocoa app?
Mixing Obj-C & Java in same Cocoa app?
- Subject: Mixing Obj-C & Java in same Cocoa app?
- From: Ken Tabb <email@hidden>
- Date: Thu, 13 Sep 2001 16:53:40 +0100
Hi,
I'm about to embark on an Obj-C Cocoa app which connects to a (Java)
WebObjects app running on another OS X box. Aside from the Obj-C / EOF
argument (which I can't take part in as I didn't use WO 4.x), and having
spoken to "WebObjects Ernie", it appears as though I need my Cocoa app to
be either entirely Java (Cocoa and/or JDK Java) or a mix of Obj-C and
Java (Cocoa and JDK java). The reason for this is so that you use RMI or
other JDK Java-specific methods to communicate with the WebObjects app on
the other machine.
I've not yet done a Cocoa app in Java, only Obj-C, but have looked
through the Temperature Converter app and it seems straightforward
enough. I'm used to 'normal' (JDK) Java, C, C++ (but would rather not)
and Obj-C (fave).
I'd like to know opinions on the following from bilingual Cocoa veterans:
[1] How easy is it to mix Obj-C Cocoa and Java Cocoa in the same app?
[2] How easy is it to mix Cocoa Java and JDK (Sun) Java in the same app?
[3] What are the limitations of [2]? In Public Beta you couldn't have
both JDK Java and Cocoa Java using the same screenspace / GUI, so one had
to control the other... I'm wondering if this has improved since the days
of Public Beta?
[4] Is Cocoa ready for doing Java programming yet... when I last looked
at the docs (about 10.0.1 I think) there was a lot more implemented for
Obj-C than there was for Cocoa Java, but it seems to be much better now.
[5] I'm assuming it's not possible to get at AltiVec from Java, as it's
interepreted by the JVM running on (presumably) the main CPU(s) and not
passed onto the AltiVec processors?
Thanks for any advice / words of warning,
the boy Ken
----------------------------------------------
Ken Tabb
Mac & UNIX Propellerhead & Network Bloke (Health & Human Sciences)
Computer Vision / Neural Network researcher (Computer Science)
University of Hertfordshire
e-mail: email@hidden
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider