views:

3729

answers:

8

What is the best book or resource for learning objective-c for someone from a predominantly C#/Java background and not having touched C for 7 years?

+11  A: 

Cocoa Programming for Mac OS X by Aaron Hillegas

Matt Dillard
+1  A: 

I liked Programming in Objective C by Stephen Kochan (although you may want to wait until the second edition of this book comes out in November since Objective C has had a few updates since the first edition was published in 2003) Unlike a lot of other books that cover programming for OS X this book does not really cover Cocoa but rather focuses on Objective C. Kochan targets people who are new to programming and his teaching style assumes no knowledge of C.

somas1
+2  A: 

For someone with a C# or Java background, and a basic understanding of C, start with Apple's own free online book The Objective-C 2.0 Programming Language (PDF). It will give you a solid overview of the language that you can build atop as you start to learn the Cocoa frameworks or otherwise dive in deeper.

The book will give you an overview of the syntax and semantics that Objective-C adds on top of C, and how Objective-C's mechanisms for object-oriented programming work. Java was significantly inspired by Objective-C, so a lot of its concepts will be familiar.

For example, Java's interface feature is a straight clone of the Objective-C @protocol feature. (As in, the Java designers explicitly adapted the feature, they didn't just arrive at an equivalent solution.)

Chris Hanson
+3  A: 

We've had a similar thread on this subject. You'll find some additional suggestions there.

Mike McMaster
A: 

Cocoa Programming for Mac OS X

by Aaron Hillegas

charles
A: 

I'll third (or fourth) the Hillegas book.

unclerojelio
A: 

In January 2010 there will be a book written by Scott Stevenson, called Cocoa and Objective-C: Up and Running.
Scott Stevenson writes tutorial on cocoadevcentral.com and rules theocacao.com .
If the book is written in the same way as the rest of his work, it seems pretty good.

Studer
A: 

I wrote a blog post with a few of the suggestions I had. My favorite is Cocoa Design Patterns.

Ross