Deliver to your Kindle or other device

Enter a promotion code
or gift card
 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Cocoa Design Patterns (Developer's Library) [Kindle Edition]

Erik Buck , Donald Yacktman
4.7 out of 5 stars  See all reviews (36 customer reviews)

Digital List Price: $43.99 What's this?
Print List Price: $54.99
Kindle Price: $19.99
You Save: $35.00 (64%)

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your email address or mobile phone number.

Formats

Amazon Price New from Used from
Kindle Edition $19.99  
Paperback $32.30  
Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Book Description

“Next time some kid shows up at my door asking for a code review, this is the book that I am going to throw at him.”

 

–Aaron Hillegass, founder of Big Nerd Ranch, Inc., and author of Cocoa Programming for Mac OS X

 

Unlocking the Secrets of Cocoa and Its Object-Oriented Frameworks

 

Mac and iPhone developers are often overwhelmed by the breadth and sophistication of the Cocoa frameworks. Although Cocoa is indeed huge, once you understand the object-oriented patterns it uses, you’ll find it remarkably elegant, consistent, and simple.

 

Cocoa Design Patterns begins with the mother of all patterns: the Model-View-Controller (MVC) pattern, which is central to all Mac and iPhone development. Encouraged, and in some cases enforced by Apple’s tools, it’s important to have a firm grasp of MVC right from the start.

 

The book’s midsection is a catalog of the essential design patterns you’ll encounter in Cocoa, including

  • Fundamental patterns, such as enumerators, accessors, and two-stage creation
  • Patterns that empower, such as singleton, delegates, and the responder chain
  • Patterns that hide complexity, including bundles, class clusters, proxies and forwarding, and controllers

And that’s not all of them! Cocoa Design Patterns painstakingly isolates 28 design patterns, accompanied with real-world examples and sample code you can apply to your applications today. The book wraps up with coverage of Core Data models, AppKit views, and a chapter on Bindings and Controllers.

 

Cocoa Design Patterns clearly defines the problems each pattern solves with a foundation in Objective-C and the Cocoa frameworks and can be used by any Mac or iPhone developer.



Editorial Reviews

Review

Praise for Cocoa Design Patterns

 

“This long-needed book is a great resource for Cocoa newcomers and veterans who want to get the why behind the what. The list of patterns gives historical perspective and answers many developer questions and the last three chapters–covering Core Data, AppKit, and Bindings–are a must-read; they reveal insights that might otherwise require hours of discussion with Apple engineers or access to source code.”

Tim Burks, Software Developer and Creator of the Nu Programming Language, www.programming.nu

 

“This book is a comprehensive and authoritative treatment of design patterns and their practical applications in Cocoa projects. I recommend this book to anyone who wants to advance from intermediate to expert proficiency as a Macintosh developer.”

John C. Randolph, Vice President Engineering, Stealth Imaging, Inc.

 

Cocoa Design Patterns is a fantastic book that will show you the ins and outs of software design patterns, how Cocoa makes use of them, and how to apply them to your own applications for better, more robust, and more maintainable software.”

August Trometer, Owner of FoggyNoggin Software

 

Cocoa Design Patterns is superb! It is highly readable, thoroughly enjoyable, and filled to the brim with wisdom that will make you a more efficient and effective programmer. The authors utilize a consistent and self-contained approach to each chapter, making it easy to return to use as a reference. However, the material is so interesting and vital to Cocoa programmers that you’ll want to read it from cover to cover.”

David Mandell, Independent Developer

 

“Erik and Donald’s book really helped me out with the conceptual side of programming. It caused me to realize where I was going wrong in my code and helped me sort out my design issues.”

Eoin Houlihan

 

“This book is recommended for any programmer interested in a deeper understanding of Cocoa. Reading it might have helped me become a better software engineer in any object-oriented language. I’ll keep it handy as a constant reference and look forward to reading it again more carefully.”

Daryl Spitzer

About the Author

Erik M. Buck founded EMB & Associates, Inc. in 1993 and built the company into a leader in the aerospace and entertainment software industries by leveraging the NeXT/Apple software technology that would later become Apple’s Cocoa frameworks. Mr. Buck has also worked in construction, taught science to 8th graders, exhibited oil on canvas portraits, and developed alternative fuel vehicles. Mr. Buck sold his company in 2002 and currently holds the title of Senior Staff at Northrop Grumman Corporation. Mr. Buck received a B.S. degree in computer science from the University of Dayton in 1991 and is a frequent contributor to Cocoa mailing lists and technical forums.

 

Donald A. Yacktman has been using Cocoa and its predecessor technologies, OpenStep and NextStep, professionally since 1991. He coauthored the book Cocoa Programming and has contributed to the Stepwise website as both author and editor. He has worked for Verio/iServer and illumineX in the past. At present he works as an independent consultant assisting in the design and implementation of Cocoa and iPhone applications. Mr.Yacktman received B.S. and M.S. degrees in electrical and computer engineering from Brigham Young University in 1991 and 1994, respectively.

 

 


Product Details

  • File Size: 12702 KB
  • Print Length: 456 pages
  • Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
  • Publisher: Addison-Wesley Professional; 1 edition (September 1, 2009)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B002RAPB46
  • Text-to-Speech: Enabled
  • X-Ray:
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #218,229 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?.


Customer Reviews

Most Helpful Customer Reviews
79 of 82 people found the following review helpful
5.0 out of 5 stars Unlocking Cocoa Programming October 28, 2009
By Sam
Format:Paperback|Verified Purchase
This superb book has finally unlocked Cocoa programming! Let me explain.

In most subjects we learn by acquiring a little bit of knowledge and, once that bit has been understood, we move on to the next little bit, until the bigger topic is understood. First we learn A then we learn B. Unfortunately, this method of learning does not work well with application frameworks such as Cocoa. These frameworks usually consist of a number of complex idea that are strongly interrelated. You cannot learn A then B, since A requires B and B requires A. Instead you must learn topics A..Z all at the same time! Cocoa is especially difficult for most programmers since it is based on using Objective C, and Objective C is based on Smalltalk. Smalltalk is an extremely dynamic language whose principles are significantly different than those of current popular languages. Thus, most programmers must learn zilllions of elements of the Cocoa framework and also the unusual ideas behind Objective C (Smalltalk). These are essential since Cocoa works differently than other popular frameworks and cannot be understood without understanding Objective C's dynamic approach to programming.

Up until now we have had Objective C books which help learning Objective C, and the excellent Hillegass book (Cocoa Programming for Mac OS X) which is a tutorial on Cocoa. The Hillegass book does help the reader understand many principals behind Cocoa, but it stops short of giving in depth knowledge of the design patterns that Cocoa uses. Thus when the user tries to go beyond the Hillegass book he/she is frustrated because they were not taught the full idea behind each element of Cocoa and their connections to other elements. There is not enough information for the reader to branch out to develop their own programs.
Read more ›
Was this review helpful to you?
30 of 30 people found the following review helpful
5.0 out of 5 stars Develops a good foundational understanding October 26, 2009
Format:Paperback|Verified Purchase
This book is not for beginners to Cocoa. I would only recommend it folks that have a reasonable amount of experience with Cocoa / Objective-C. Don't take this the wrong way; I'm only defining the target audience. This book details the patterns at work in Cocoa's architecture. While this text may confuse those new to Obj-C or Cocoa, it provides valuable insight into Cocoa usage patterns.

Cocoa Design Patterns explains techniques commonly used throughout the Cocoa architecture (Model-View-Controller, Release/Retain Counting, Delegates, etc.), and provides concrete implementation examples in the frameworks. For each pattern it also describes the scenario that you may use it in, and the consequences, good and bad, to using the pattern. I would recommend this book to anyone after they've cut their teeth on Cocoa, after writing their first couple simple applications. This book shines light on some of the design decisions Apple made with Cocoa, and helps the reader understand how to best leverage the patterns utilized in the Cocoa frameworks.
Was this review helpful to you?
33 of 37 people found the following review helpful
5.0 out of 5 stars If Cocoa is Your Thing, This Book is Essential September 14, 2009
Format:Paperback
It was the iPhone that finally brought me into the world of Cocoa programming. I quickly fell in love with the Cocoa & Cocoa Touch frameworks, finding them to be elegant, consistent and truly useful. I've read several books on Cocoa, Objective-C and Mac / iPhone development, but this one stands alone in its quest to fill the gaps, to cement a deep and thorough understanding of one of the best frameworks ever written.

Simply stated, this book is a joy to read. It answered many questions that I had about the "why" behind the evolution of Cocoa and has left me feeling better able to make the most of its power. Cocoa Design Patterns is written in a style that is extremely accessible. It is almost like a detective novel as each chapter unravels the secrets of Cocoa. The most fun I've had reading a technical book in a long while.
Comment | 
Was this review helpful to you?
11 of 11 people found the following review helpful
4.0 out of 5 stars Very good, with only a few issues March 22, 2010
Format:Paperback
Overall, I thought the book was expertly written. It covers a lot of important and interesting aspects of Cocoa, and all its major patterns. The only reasons I'm not giving it 5 stars are:

- there are several errors in the code samples. Occasional bugs are inevitable, but non-compiling code is inexcusable and a major disappointment, for a book of this nature;
- its coverage of the Singleton pattern is incomplete, considering that it doesn't discuss Apple's own recommendations on how to implement a singleton;
- no discussion of patterns related to thread safety;
- the discussion of HOMs (higher order messages) is interesting, but it strikes me as something rarely used; I'd have preferred if the author had used the space spent on HOMs to discuss something more practical. For instance, a common application of the Proxy pattern is the asynchronous loading of images off the web. I think that would have been more useful;
- later chapters are very repetitive, and much less concrete in actual usage, than earlier ones. For instance, chapters 28 (Managers), 29 (Controllers), and 32 (Bindings and Controllers) have a lot in common, and that commonality is repeated in all 3 chapters. Chapter 31 (Application Kit Views) is a repetition of material covered in several previous chapters and adds nothing new.

I'm a great fan of Design Patterns and think that the Gang of Four book (Design Patterns: Elements of Reusable Object-Oriented Software) is still the best book on the subject. However, it's focused on C++ and not on Objective-C and Cocoa. This book, despite its faults, is a worthy partner to the Gang of Four book and is a great addition to any Cocoa programmer's library.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Better than expected
This book was supposed to be "Used" version and it appeared to be in a really good conditions as promised by the seller. The shipment has been done soon enough, too. Read more
Published 3 months ago by Khang Vu
5.0 out of 5 stars Excellent Book. Recommended for all Apple Developers
This book is a must buy for any serious programmer. It places emphasis on Apple's OS X development, but a great for any development platform. Read more
Published 8 months ago by Jack N. Hatfield
5.0 out of 5 stars 100% recommend
I haven't finished the entire book yet but until now it has been astonishing good! I recommend it 100% to become a better iOS/Mac developer.
Published 12 months ago by David H.
3.0 out of 5 stars good book
A lot of examples that I don't find too useful. As an experienced programmer I was hoping for more of a recipe book.
Published 15 months ago by asdf
4.0 out of 5 stars Slightly dated, but still a standard.
Cannot really go wrong here. It is a standard you should read if you use Cocoa. Even Cocoa touch folks would learn a lot here. Just wish they'd give us an updated version.
Published 16 months ago by Goodbye Helicopter
5.0 out of 5 stars Very Useful Book
This book contains valuable information for anyone new to Apple programming. It provides a good introduction to the abstraction in the Apple libraries.
Published 16 months ago by B. Wilkinson
4.0 out of 5 stars Excellent for Beginners
Great for starter beginning to program and trying to figure out how certain things work within xcode. Read more
Published 16 months ago by Dauris Little
5.0 out of 5 stars A must for any cocoa programmer
I'm relatively new to Cocoa and the iOS frameworks. This book goes a long way in making clear why many of the language features are the way they are and the design principles... Read more
Published 16 months ago by Michael Koukoullis
5.0 out of 5 stars So far so good
I'm not done with this yet but I don't think I will be for a while (because I think I'll be re-reading it a few times over). Read more
Published 17 months ago by A. Iredale
5.0 out of 5 stars Excellent book
Very well detailed explanation of Cocoa patterns including understandable examples and sample code.
A must read to any serious iOS or Mac developer. Read more
Published 19 months ago by Lucas Pereira
Search Customer Reviews
Search these reviews only

More About the Author

Discover books, learn about writers, read author blogs, and more.


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Look for Similar Items by Category