Advice on mixing ObjC and Java in Cocoa
Advice on mixing ObjC and Java in Cocoa
- Subject: Advice on mixing ObjC and Java in Cocoa
- From: Ash Mishra <email@hidden>
- Date: Fri, 27 Jul 2001 10:51:51 +0100
Hello all,
I've been building a document based Cocoa app that uses ObjC for all parts,
except when it comes to the model; which I have been writing in Java, and
instantiating in ObjC with NSClassFromString when needed. (My main reason
for this is so that the model is portable across platforms).
So far the only real issue I have run into mixing the two languages is the
whole NSArchiver / NSUnarchiver debacle (it doesn't work in Java); and thus
having to resort to creating a custom object graph archiver.
Otherwise, I have been somewhat surprised that how transparently everything
seems to work between ObjC and Java. My surprise though is laced with
unease and suspicion! (I'm quite worried that I might pay a heavy cost
later for not coding the app completely in ObjC.) Opinions requested.
--------------------
My question is this:
Is it safe to mix these two languages in a Cocoa app, or am I going to
suffer needless pustules when the app starts getting more complex?
Just looking to hear experiences, good or bad...
Cheers, Ash
This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.