Objective C 2.0

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

  1. macrumors 68000

    Joined:
    Sep 8, 2006
    #1
    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
     
  2. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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. macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #3
    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. thread starter macrumors 68000

    Joined:
    Sep 8, 2006
    #4
    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
     
  5. macrumors 6502a

    Joined:
    Oct 13, 2007

Share This Page