23 points · by andreyf · 17y ago · 22 comments
The pattern is that they're all ~100 pages long, and assume I'm not dumb. What's an Objective-C book I'd like?
I'm interested in doing OSX/iPhone development, but looking to quickly get a strong theoretical understanding of the language before I dive in.
Intro to Objective-C: http://developer.apple.com/mac/library/documentation/cocoa/C...
Instead of focusing on the language, it goes over the basic frameworks you'll use, the design patterns that the frameworks use, delegation, target-action, bindings, and so on. Pretty much the basics of everything that you'd possibly need to know to make an app, either on the iPhone or OS X.
http://pierre.chachatelier.fr/programmation/fichiers/cpp-obj...
Either hit cmd + shift + a to run the analyzer or check the box in the project info to automatically run it before every build.
I would personally say that if an object is retaining its parent (or parent's parent, etc), there's something wrong with your design and you should step back to reconsider things.
Matt Gallagher put it much better than I can and I would recommend reading his post on it: http://cocoawithlove.com/2009/07/rules-to-avoid-retain-cycle...
it's a very quick read (sorry for the Mac bias) and allowed me to get through it in about a day before moving on to the iPhone app book from the same series
The only thing it didn't cover that I needed is @properties, which is easy enough to google for.
Combined with the excellent iPhone SDK examples and documentation, I'm pretty close to finishing my first non-trivial iPhone app (well, kind of trivial).
I'll check out some of these other links, too..
It maps out all the Objective-C-specific parts of Objective-C and tells you how they correspond to OO conventions in other languages (usually C++ or Java).
Very useful, especially if you find Objective-C's syntax the roadblock but have a good understanding of OO in general.
http://developer.apple.com/mac/library/documentation/cocoa/C...
And, again imho, you should just first dive in, then search for answers.