Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
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

macrumors 604
Oct 2, 2006
6,812
1,100
The Land of Hope and Glory
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

macrumors 68000
Feb 1, 2005
1,887
1
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

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.