by: George Starcher, Associate Editor
A few weeks back I hit the Big Nerd Ranch for Cocoa Objective C bootcamp. It has been fun and interesting dusting off some programming skills. I mainly want to work on some projects for the Mac. However, the idea of playing around with the iPhone/iPod touch for some development. I was sent a review copy of Erica Sadun’s The iPhone Developer’s Cookbook.
The book provides a very well rounded tour of code samples, suggestions and guidance on building your applications. You do need some foundation in Objective C and xcode to get the most from the book. Like most cookbooks it has plenty of code recipes for all sorts of different parts you need to make good applications. However if you are really just getting started completely from scratch I recommend going through Aaron Hillegass’ Cocoa Programming for Mac OSX first. Get yourself familiar with xcode and cocoa. Then you can build from there using Erica’s book.
Overall I think the book will be a great reference. Just keep in mind it was written as best it could be to be current yet timeless. There is one reference to the push services that Apple has yet to release. Erica mentions she did not religiously address memory management retain and releases in the code. This was done to ensure the code would work for learning purposes well into future versions of xcode. So be sure to pay attention to what you need to do if you follow the examples to tighten up your memory management.
She takes you through getting setup with your certificate into xcode so you can test your code on an actual device. Then there are tons of code sample on different interface styles. Even a dash of references on neat but technically unsupported tricks. Erica makes clear when she shows those so you can use them at your own risk. You still will need to reference Apple’s user interface guidelines if you want your application to measure up. Still you can get a lot of great mechanics for your applications from the book.
All in all I rate this a great companion reference with my book on Cocoa programming. Just give yourself time to absorb it all and practice with all the examples you are given. Erica even keeps pretty up to date code samples from the book on her web site. At the time I write this the most recent file updates show as October 13 which is pretty recent.
Good reading and coding!