Cocoa Programming for Mac OS X (英語) ペーパーバック – 2011/11/9
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
The best-selling introduction to Cocoa, once again updated to cover the latest Mac programming technologies, and still enthusiastically recommended by experienced Mac OS X developers.
“Cocoa® Programming for Mac® OS X is considered by most to be the de-facto intro-to-OS X programming text.”
—Bob Rudis, the Apple Blog
“I would highly recommend this title to anyone interested in Mac development. Even if you own the previous edition, I think you’ll find the new and revised content well worth the price.”
—Bob McCune, bobmccune.com
If you’re developing applications for Mac OS X, Cocoa® Programming for Mac® OS X, Fourth Edition, is the book you’ve been waiting to get your hands on. If you’re new to the Mac environment, it’s probably the book you’ve been told to read first.
Covering the bulk of what you need to know to develop full-featured applications for OS X, written in an engaging tutorial style, and thoroughly class-tested to assure clarity and accuracy, it is an invaluable resource for any Mac programmer. Specifically, Aaron Hillegass and Adam Preble introduce the two most commonly used Mac developer tools: Xcode and Instruments. They also cover the Objective-C language and the major design patterns of Cocoa. Aaron and Adam illustrate their explanations with exemplary code, written in the idioms of the Cocoa community, to show you how Mac programs should be written. After reading this book, you will know enough to understand and utilize Apple’s online documentation for your own unique needs. And you will know enough to write your own stylish code.
Updated for Mac OS X 10.6 and 10.7, this fourth edition includes coverage of Xcode 4, blocks, view-based table views, Apple’s new approach to memory management (Automatic Reference Counting), and the Mac App Store. This edition adds a new chapter on concurrency and expands coverage of Core Animation. The book now devotes a full chapter to the basics of iOS development.
Aaron Hillegass, who worked at NeXT and Apple, now teaches popular Cocoa programming classes at Big Nerd Ranch. At NeXT, he wrote the first course on OpenStep, the predecessor to today’s Cocoa tools. This book is based on the big Nerd Ranch course and is influenced by more than a decade of work with OpenStep and Cocoa.
Adam Preble learned Cocoa programming from the first edition of this book. After too many years of professional C/C++ development, today Adam writes Mac and iOS applications at Big Nerd Ranch, where he is also a Cocoa instructor. He is frequently filling in the gaps between work and family time with pinball machine software development and countless other projects.
However, IF YOU ARE THINKING ABOUT KINDLE VERSION. DONT DO IT.
The Kindle version of this book is virtually unusable. The images are simple awful (too small to be seen).
Also, the code listings are done in a proportional font (same as the text) that makes reading the code very hard. The code listings are also not separated from the rest of the book at all.
These two problems really take away from the utility of this book. Really expected more from the Big Nerd Guys.
As others have mentioned, its pretty easy to grok and recover from the typos and skipped instructions if you're already experienced in Obj-C and Cocoa programming, but I'm not so sure that would be true for anyone that's trying to use this as a starter book...which is what it's supposed to be. This used to be the "go-to" book for the first-time OSX programmer; I wouldn't recommend this until it undergoes a serious rewrite.
For anyone struggling with the deprecated OpenGL glut methods in Chapter 35...set your Deployment Target to 10.8.
Alas, this book didn't live up to my expectations. It covers all the right topics, but the programming examples are not particularly useful and it's not clear how one could extend them to other situations. Some concepts though covered are left under explained (like MVC and delegates). Key methods are thrown out list-like in places, with no obvious pointers to how or where they are to be implemented. In other cases, fancy tricks are pulled off by getting the reader to basically copy loads of code, but why or how those methods are being implemented is not really clear. If the author's weren't leading you by the hand, you'd have no idea how they came up with those solutions, and that really encapsulates the problems with the book as a whole: it demonstrates, but doesn't empower.
At the same time, while by no means a complete reference manual (those are on-line anyway, bundled with the developer tools), the book is very usable for the more-experienced developer. I've been programming professionally in C/C++/Java for 15 years or so, and found myself leaping ahead to advanced chapters (for example, to add a "sheet" to my growing app). This worked very well, and it's unusual for one book to work both for novice and expert, both sequentially and by random access.
The style is personal and personable. Possibly just a shade too much so: the principal flaw of the book is that Mr. Hillegass is still a bit caught up in some "object oriented" turf wars of a decade or so ago. If you want to learn to do object-oriented programming, or even what it is, this is quite the wrong place to go. And the worst of that problem is that the presentation seems to claim to be "OO" without either mentioning or demonstrating the modularity and suitability of design that are the actual roots of "OO".
Each chapter ends with "For the Curious" which goes into more depth to show you how something is working under the hood.
I recommend this book to any beginning Cocoa programmer and also recommend it as a good reference to freshen up knowledge in a functional area.