Objective C 2.0

Discussion in 'Mac Programming' started by larswik, Apr 5, 2008.

  1. larswik macrumors 68000

    Sep 8, 2006
    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?


  2. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    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.
  3. Soulstorm macrumors 68000


    Feb 1, 2005
    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).
  4. larswik thread starter macrumors 68000

    Sep 8, 2006
    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.


Share This Page