Re: Cocoa Developer in Training: Language Question (ObjC or Java)?
Re: Cocoa Developer in Training: Language Question (ObjC or Java)?
- Subject: Re: Cocoa Developer in Training: Language Question (ObjC or Java)?
- From: Thomas Lachand-Robert <email@hidden>
- Date: Fri, 4 Jan 2002 13:02:23 +0100
Le vendredi 4 janvier 2002, ` 03:54 , Charles Miller a icrit :
What I'd like to hear more of is what happens when you use Obj-C to
run the Controller portion of your application, and have that custom
controller use existing Java libraries. This would (I figure) minimise
calls across the bridge, and solve many of the static typing problems
since the Java code never needs to know that it's talking to a strange
system.
Can you really do that? I spend hours trying to understand how to use Java
in relation with other languages (JNI or something, I don't remember now),
it was so confuse I just gave up. Also I don't know how to call Java from
Obj-C (or C).
IMHO Obj-C is really very useful for the UI classes and the controller
classes. But for the model classes, if they are simple but need a lot of
computation, it is better to rely on a different language, either plain
old C (the more efficient anyway), or C++ (which is very convenient for
that). If it is possible to use Java for the model classes, it can be very
useful, particularly for Internet-related things.
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.