A cookbook for developing Cocoa applications. Slow-paced, and includes some dated discussion of techniques superseded by improvement in Cocoa.
Any new programmer coming to Mac OS X will want to learn Cocoa, the most sophisticated environment for creating Mac OS X-native applications. This book offers an approachable, hands-on, step-by-step approach to learning Cocoa, the development environment for creating Mac OS X applications. It walks you through the details of building a Cocoa application from start to finish, and explains in detail what the code is doing and why it works. There is a decided emphasis on getting an application to work correctly as quickly as possible, as well as avoiding common pitfalls and mistakes. This is a collection of simple, do-it-yourself recipes to guide you through the process of creating classes and subclasses, objects, outlets, and actions.
Several reviews that that this book rides the line of having too much tutorial detail, but it's stuffed full of useful tidbits you don't get anywhere else. While many books skip over details to simplify the presentation, this book doesn't. As a result the explanations are a little longer at times, but you find out everything you need to do to write a truly polished application. The entire book (750 pages) revolves around a single large project, but code downloads for each phase are available.
Comments from CocoaDev:
- I would suggest this to be your SECOND Cocoa book, because it gets into a lot of detail of how to make a production-ready application. The first section (~150 pages) has you create a full application, with open/save file, revert, undo/redo functionality. The thing is this application has ONE checkbox. I would suggest that someone starts with a book that gets into the more fun part of cocoa in the beginning, rather then the boring parts of development. But, I WOULD suggest everyone look at this book before publishing anything that they write, because of the exact same reason.
- Once you have an idea of how the toolkit works, this book helps assemble the pieces into a more coherent whole. After working through the first (pretty big) chapter, the end result is kind of disappointing to look at, but the underpinnings that were developed were pretty exciting.
- This book contains a prodigious, nay, obsessive amount of detail, applying a soon-to-be bygone technology (which is rapidly being supplanted by Bindings and the Controller layer.) The app that you build contains almost all common kinds of UI controls, but if you want to restrict yourself to a particular and small subset, you have a lot of hunting to do in the text. Worth the effort if you can see from it how to situate your own model and controller classes in its scheme of things. Carefully read the first recipe, 150 pages or so, and then skip around to find the stuff you need. I "got" the Cocoa architecture much better after that exercise. A lot of work, but worth it, IMO.
- This book is very in depth and I'm sure it could have been useful at one time, but currently it is very dated and the author hasn't bothered to provide any updates that inform the newbie about the changes from Project Builder to XCode.