Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Obj-C, Java, and Cocoa

Obj-C, Java, and Cocoa
Thread Tools
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 12, 2003, 03:14 PM
 
Hello I am currently learning Java, but I want to learn Cocoa soon. Should I also learn Obj-C to program Cocoa, or can I use both to program Cocoa? It does not matter if it can run on Windows but it would be nice if it was easy to port. Also I have heard Cocoa with java is slow is that true? Also if I were to learn Obj-C how hard or how long is it to learn if you know Java and C? Also how hard or how long is it to learn Cocoa? Thanks
-Benguru
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Oct 12, 2003, 11:17 PM
 
1) You can use both, but Objective-C is a bit faster and slightly better supported afaik.

2)Cocoa doesn't port well at all

3)Java is usually slower than C/Obj-C/C++

4)Objective-C is easy to pick up with a knowledge of C/C++/Java

5)Cocoa takes a bit longer to get the hang of, but is pretty easy to start doing simple stuff in.
     
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Reply With Quote
Oct 13, 2003, 02:45 AM
 
Originally posted by benguru:
Hello I am currently learning Java, but I want to learn Cocoa soon. Should I also learn Obj-C to program Cocoa, or can I use both to program Cocoa? It does not matter if it can run on Windows but it would be nice if it was easy to port. Also I have heard Cocoa with java is slow is that true? Also if I were to learn Obj-C how hard or how long is it to learn if you know Java and C? Also how hard or how long is it to learn Cocoa? Thanks
-Benguru
Hey! Wow, it's been a while, but my login still works.

Benguru, if you like OSX and are interested in writing apps for it, take a little detour and try learning obj-c/Cocoa.

Worst-case scenario: you end up spending a little time learning a fairly simple language that many folks think is really something special. It may even help you understand Java better.

Learning Java helped me to better understand C++.
     
benguru  (op)
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 13, 2003, 10:27 AM
 
Ok I think I will learn both Obj-J and Cocoa. I was thinking of getting "Cocoa Programming for Mac OS X". Is that a good book? I heard a lot of other people like it. Also if I wanted to learn OpenGL how hard would it be and where would I start?
     
Dedicated MacNNer
Join Date: Sep 2001
Location: San Jose CA
Status: Offline
Reply With Quote
Oct 13, 2003, 11:57 AM
 
Hi,

I recently bought Cocoa Programming for MacOS X and I really like it. It is a well written book with lots of easy to follow examples and programming projects. It is MUCH better than the O'Reilly cocoa programming books. Using 'Cocoa Programming' I was able to port one of my command line programs from java to cocoa with very few problems.

The one thing that I had problems with was auto-release vs. manual release. There are some good articles on www.stepwise.com which were of great help.

--ranga
     
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Reply With Quote
Oct 13, 2003, 12:43 PM
 
I was thinking of getting "Cocoa Programming for Mac OS X". Is that a good book?

Yes.

Also if I wanted to learn OpenGL how hard would it be and where would I start?

Not hard. It's just a C API with functions to set up and use a state machine. You tell this state machine about positions of triangles in 3D space, you tell it about lights and about from where you're looking at the scene and so on -- and it draws it all for you.

Start here:
http://www.opengl.org
http://www.idevgames.com
     
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status: Offline
Reply With Quote
Oct 13, 2003, 12:56 PM
 
I actually am working through the "Cocoa for Dummies" book. I'm actually liking it. I also picked up the "Cocoa Programming for OS X" book also. Looks good and I'll be working through it once I finish the Dummies book. If you want an idea of what the Dummies book teaches, goto www.dummies.com and search for the book and download the code for the chapters.

Another book I'm probably going to pick up is published by the people who put together the following Cocoa tutorials and information:

http://www.stepwise.com/StartingPoint/Cocoa.html

The book is called "Cocoa Recipes for Mac OS X—The Vermont Recipes" and looks like it is as worthwhile as the bignerdranch book.

I found two great sites directly related to OS X, Cocoa and Open GL last week. They are:

http://divide.zerobyzero.ca

and

http://www.withay.com/macosx/opengl/

Hope this helps you out!
     
benguru  (op)
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 15, 2003, 06:48 AM
 
Thanks a lot also some people say the book "Cocoa Programming" is better than "Cocoa Programming for Mac OS X" which should I get?
     
Professional Poster
Join Date: Apr 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Oct 15, 2003, 11:16 AM
 
search Amazon for Hildegass as the author... it's a brown book, the title escapes me. uber-awesome book. I 'd stay away from the O'Reilly books, they're just not that great. :/
The short shall inherit the earth. Just you wait. You won't see us coming. We'll pop out from under tables, beds, and closets in hordes. So you're tall, huh? You won't be so tall when I chew off your ankles. Mofo
     
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status: Offline
Reply With Quote
Oct 15, 2003, 11:44 AM
 
Originally posted by cheerios:
search Amazon for Hildegass as the author... it's a brown book, the title escapes me. uber-awesome book. I 'd stay away from the O'Reilly books, they're just not that great. :/
That would be Aaron Hillegass. He wrote the "Cocoa Programming for OS X" I mentioned in my earlier post.
     
Professional Poster
Join Date: Apr 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Oct 15, 2003, 04:00 PM
 
it was early, and i hadn't had my coffee that is indeed the one. Now that I'm concious and read the thread again i realize I'm rather repetitive.. .sorry. still another vote for Cocoa Programming for OS X, at least !
The short shall inherit the earth. Just you wait. You won't see us coming. We'll pop out from under tables, beds, and closets in hordes. So you're tall, huh? You won't be so tall when I chew off your ankles. Mofo
     
benguru  (op)
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 15, 2003, 04:33 PM
 
Ok thanks a lot but I was asking about this book which is made by Sams here is a link.

Book Link
Has anyone read it. By the way I will get the Hildegass book but is this book good for after it?
     
Professional Poster
Join Date: Apr 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Oct 15, 2003, 04:38 PM
 
just got it, haven't had a lot of time to look at it, but it was highly recommended and my boyfriend says it's good.
The short shall inherit the earth. Just you wait. You won't see us coming. We'll pop out from under tables, beds, and closets in hordes. So you're tall, huh? You won't be so tall when I chew off your ankles. Mofo
     
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Wisconsin
Status: Offline
Reply With Quote
Oct 15, 2003, 07:01 PM
 
What's up benguru. I played chess with you awhile ago. I learned Cocoa and ObjC about two years ago with the help of the Hildegass. I had similar programming experience when I started learning. If you have any questions, feel free to email me...
seppak at mac.com
     
benguru  (op)
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 16, 2003, 02:13 PM
 
Hi seppak, I haven't been on Gridlock for a long time I was pretty busy.
Well I will try the Hildegass book. Thanks a lot guys. I tell you how it goes.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2