Re: Why Objective-C over Java?
Re: Why Objective-C over Java?
- Subject: Re: Why Objective-C over Java?
- From: Trevor McCulloch <email@hidden>
- Date: Sat, 26 May 2001 12:06:38 -0400
On Saturday, May 26, 2001, at 11:25 AM, Youngjin Kim wrote:
Hi,
I am a new to OS-X programming and I don't have experience with
Objective-C.
I understand that Objective-C is seemingly not hard to learn, but I
want to stay with Java at this stage because of compatibility and reuse
issue. Thus it seems to be natural for me to stick to java and jump
into writing for OS-X with it.
However I'm curious how many people have been there, and how do you
think about Java in OS-X and PB/IB environment. Would it be more
productive to start with Objective-C? Isn't there any major pitfall
hidden? Most people in this list seems to be working with Objective-C
API. Does Apple recommend Objective-C over Java? if so, what's the
reasoning behind this?
Well, there are a few reasons people recommend obj-c over java on OS X.
One is that it is *much* faster using the cocoa API's because there is
no JVM to load and there is no bridge (look up docs for the java bridge)
to cross. Also, compatibility becomes meaningless if you use the native
Cocoa APIs instead of JFC/Swing because then it will depend on classes
only available on Mac OS X systems. I would recommend Objective-C over
java because of speed and because it is truly native to OS X. Plus, as
someone who used to write in JFC/Swing, it's way easier once you learn
it :-).
Trevor McCulloch