Fwd: Cocoa-Java Newbie
Fwd: Cocoa-Java Newbie
- Subject: Fwd: Cocoa-Java Newbie
- From: Marco Binder <email@hidden>
- Date: Sun, 8 Jun 2003 18:31:43 +0200
Hello James,
I am sure you have already found (and done?) the tutorial Apple
provided for Cocoa Java:
file:///Developer/Documentation/Cocoa/JavaTutorial/index.html
This should really get you started. it did the job for me. (Not too
long ago, maybe two years or so)
Now this will sound like the standard response of people on this list
to anyone who only mentions "Java" in a Cocoa context in here. However,
for me it turned out to be a question, too, even without reading this
list back then: why not have a look at Objective C?!
I m not a pro, but just for the simplicity and the aestethics of java
code, I once decided to learn java. when I say learn, I mean it like
finding some way or another to make things do what I want. Like if it
were a spoken language, I could order my sandwich and coke, but never
really talk bout politics. Then I started doing Java on OS X, "Cocoa
Java" and thought it is THE dropdead perfect solution. Java as a NATIVE
language for the Mac! Wow!
However, it turned out to be different. Although Apple likes (liked?)
to promote Java a "native" language for OS X, it is not. Not really.
Although Cocoa Java is AMAZINGLY performant as compared to any other
GUI java, it is still somewhat slower than "real" cocoa (especially the
first start of a java app can take ages). Then, there are some
restrictions in the use of the NS*** classes, as you will notice very
soon, when digging through the documentation on your searches for
appropriate classes.
To make the long story short: in the end, I found myself being curious,
how hard it might be to learn Objective C. Especially the memory
managment, which you do need for ObjC but not for Java really, made me
worry. Allocating memory? Remembering which object you created because
you have to MANUALLY destroy it later on? I did have some experience in
C++, but that was long ago and not very sound. So I was really
hesitating first. But VERY quickly, i discovered, that ObjC is soooo
beautiful. And easy. And powerful. And easy, did I mention that
before?! It took me no longer than ONE day to get used to the language.
With the API docs at hand, I was able to do an app in no time!
I dont want to make you switch from Cocoa java to ObjC Cocoa. I just
want to encourage you to give it a try! I promise, ONE SINGLE day will
be enough to give you the feeling. Spend one day with ObjC and THEN
decide!
Now have fun getting started with OS X programming and produce some
good apps,
Marco
Am Sonntag, 08.06.03, um 16:00 Uhr (Europe/Berlin) schrieb James
McConnell:
>
Greetings, all. As the subject line states, I am new to Cocoa-Java,
>
and
>
this being my first post to the list, I just wanted to introduce
>
myself. I
>
am normally a Java developer, but after struggling with Swing to get
>
it to
>
behave like a Mac, and failing horribly, I felt it was time to just
>
give up
>
and learn Cocoa-Java, as my OS of choice is Mac.
>
>
So I was simply wondering if you people know of any good sites with
>
tutorials on Cocoa-Java, especially those dealing with Project and
>
Interface
>
Builder. I will be perusing the documentation for the code side of
>
things,
>
but I need to learn how to use Interface Builder in conjunction with
>
Project
>
Builder effectively, and I don't have the funds right now to go buy a
>
book,
>
so I'm looking for free sites w/ tutorials.
>
>
I'll be looking myself, but if anyone has any suggestions, they would
>
be
>
greatly appreciated. Thanks in advance, everyone!
>
>
James
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
>
>
--
|\ /| email@hidden
http://www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.