PDA

View Full Version : Objective C 2.0




larswik
Apr 5, 2008, 04:50 PM
Hi, just had a quick question. Is there any difference between Objective C and Objective C 2.0.

I have a small amount of experience in Java and had to stop 2 years ago when my mom passed away. I have a project that I would like to start in the next 2 years and it sounds like Objective C would be better to learn. I have an Objective C book but before I start to learn I was wondering if there is a difference?

Thanks,

-Lars



Cromulent
Apr 5, 2008, 05:22 PM
Hi, just had a quick question. Is there any difference between Objective C and Objective C 2.0.

I have a small amount of experience in Java and had to stop 2 years ago when my mom passed away. I have a project that I would like to start in the next 2 years and it sounds like Objective C would be better to learn. I have an Objective C book but before I start to learn I was wondering if there is a difference?

Thanks,

-Lars

Garbage collection is the big new thing in Objective-C 2.0.

You'll probably still want to use manual memory management though as Tiger does not support garbage collection in Objective-C.

Soulstorm
Apr 5, 2008, 06:18 PM
All code from Objective C 1.0 will work with version 2.0 intact. Objective C 2.0 also adds garbage collection (automatic memory management) and some facilities in code rewrite.

The basic concept remains the same, however. And as for garbage collection, I use it for debugging purposes only. I think that when it comes to releasing your project, you will want to have the code as much cleared as possible. That means that even if you have garbage collection enabled, your code should also be made to work properly without this. So basically, it's a useless feature for me (unless for the previously mentioned debugging purposes).

larswik
Apr 5, 2008, 08:10 PM
Thanks for clearing it up for me. It sounds like like I can continue with the book that I have and slowly start to learn this language.

-Lars

larkost
Apr 5, 2008, 08:47 PM
Here is Apple's overview on this:

http://developer.apple.com/leopard/overview/objectivec2.html