Want to learn Objective-C, but...

Discussion in 'Mac Programming' started by ninjaboi21, Oct 23, 2010.

  1. ninjaboi21 macrumors member

    Oct 23, 2010
    ...I am not sure what book to read.

    I came up with the following:
    Programming in Objective-C 2.0
    Learn Objective-C on the Mac

    My programming experience is fairly strict as I just only know a little C.
    I read a little over the half of Learn C on the Mac which I found great and gave me a little push inside the world of programming. I read until the "Chapter 7: Pointers and Parameters".

    Now I am not sure what to do, which book to take?
    I have read a little in Programming in Objective-C 2.0 (that is only Chapter 2, "The @implementation Section"), but I don't get 25% of what he is talking about. What's the definition of a method, class, instance etc. Will this come at a later point if I continue to read it?
    The example he gives is not at all logical for me, here it is:

    The "Kinda C" Version (which I understand 100%)

    The "Objective-C" Version (which I understand 10%)

    What will you recommend for me to read, keeping in mind my programming skills is limited and only know a little C.

    Not sure if this was enough information, so please tell me if I should add anything :)

    Thank you in advance.
  2. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
    There is no Fraction example in Chapter 2. It's in Chapter 3.

    If you encounter something unexplained in a programming book, it's usually a good idea to keep reading for an explanation. Especially if it says "Here, then, is the program, followed by a detailed explanation of how it works."

    If you are looking for a description of a class, method, instance, etc. in general terms, for all or most object-oriented programming languages, then try Wikipedia.

    You can also read Apple's online docs and see if they explain things for you.

    Object-Oriented Programming with Objective-C:

    The Objective-C Programming Language:

    Finally, there is a forum dedicated to Kochan's book:

    One reason for asking your questions there is the author is more likely to answer. Also, there are other people who have the same book who are more likely to be able to directly answer your questions.
  3. ninjaboi21 thread starter macrumors member

    Oct 23, 2010
    Thank you for replying, but it was not that I was looking for.

    I was more into finding out which book is best, and easiest to learn from with the programming experience/skill I got.
    To go with the series or to continue with Stephen's 2.0.
  4. robvas macrumors 68030

    Mar 29, 2009
    Both, they're quite different. The Fruit book has more GUI examples but doesn't explain much about Objective-C, and the Hillegass book explains a lot more features.
  5. ninjaboi21 thread starter macrumors member

    Oct 23, 2010
    So maybe start out with "The Fruit Book", get the basic stuff covered with GUI/screenshots and then move on to some more detailed/advanced stuff in Stephen's book?

    Just to be clear, Hillegass wrote "Cocoa Programming for Mac OS X".
    You ment Stephen or was it Hillegass?
  6. robvas macrumors 68030

    Mar 29, 2009
    I'm talking about a third book.

    The fruit book doesn't cover much other than using each individual GUI control, and core data.



    Then there's the Kochan book. Covers Objective-C 2.0 (hence the title of the book) but not THAT much about Cocoa/Xcode.


    Another good book (by Robert Clair) that covers a lot of Objective-C 2.0 but not that much Cocoa/Xcode. I actually bought this book on accident, the previous version has a very similar cover (and title) to the Kochan book. It's a real good book, though. I was upset that I made the mistake but now I'm not.


    Hillegass book. Again, it doesn't cover Objective-C 2.0 as much, but it does have a lot of information about how to do different things and also has some good exercises. It may be a little confusing for some people though.

    I'd go check them out at the bookstore so you know what you're getting. I'd also buy one of each category. Hillegass/Fruit and one of the Objective-C 2.0 books to go with it. They complement each other well.

Share This Page