Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cocoa design patternsErik M. Buck

    Cocoa design patterns

    Erik M. Buck · 2009

    "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 XUnlocking the Secrets of Cocoa and Its Object-Oriented FrameworksMac 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, includingFundamental patterns, such as enumerators, accessors, and two-stage creationPatterns that empower, such as singleton, delegates, and the responder chainPatterns that hide complexity, including bundles, class clusters, proxies and forwarding, and controllersAnd 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.

    Software Engineering
    Open LibraryAmazon
    Stats for nerds
    5recommend
    8mentions
    6people
    2010–2012years
    88% recommend13% neutral

    Mentions per year

    201020112012

    What Hacker News says

    1. hackrocketMay 2012
      For an absolute beginner a good way to start is by following an online course in iOS development:

      http://www.hackrocket.com Will soon launch an immersive three-month program to teach absolute beginners how to build iPhone and iPad apps

      http://teamtreehouse.com/

      http://www.lynda.com/iOS-tutorials/iOS-SDK-Essential-Trainin...

      http://itunes.apple.com/itunes-u/ipad-iphone-application-dev...

      http://codelesson.com/courses/tag/Mobile

      You can also try to learn on your own. Here are some of the best books:

      - iPhone Programming : The Big Nerd Ranch Guide

      - Cocoa Design Patterns

      - iPhone App Development : The Missing Manual

      - The iOS Developer's Cookbook

      - Cocoa Design Patterns

      - Head First: iPhone Development

      Once you start developing http://www.stackoverflow.com is an invaluable resource

      thread
    2. hackrocketMay 2012
      Here are some great resources for learning iOS:

      [1] Online courses:

      http://www.hackrocket.com

      http://teamtreehouse.com/

      http://www.lynda.com/iOS-tutorials/iOS-SDK-Essential-Trainin...

      http://itunes.apple.com/itunes-u/ipad-iphone-application-dev...

      http://codelesson.com/courses/tag/Mobile

      [2] Blogs/tutorials:

      http://developer.apple.com/library/ios/#referencelibrary/Get...

      http://www.raywenderlich.com/

      http://cocoawithlove.com/

      http://mattgemmell.com/

      http://mobile.tutsplus.com

      [3] Books:

      Objective-C Programming: The Big Nerd Ranch Guide

      iPhone Programming : The Big Nerd Ranch Guide

      Cocoa Design Patterns

      iPhone App Development : The Missing Manual

      The iOS Developer's Cookbook

      Cocoa Design Patterns

      Beginning iPhone Development: Exploring the iPhone SDK

      [4] Forums/Q&A

      http://stackoverflow.com

      http://www.iphonedevsdk.com/forum/

      [5] Videos

      http://www.youtube.com/user/MilmersXcode?ob=0&feature=re...

      [6] Email newsletters

      http://tinyletter.com/hackrocket

      http://iosdevweekly.com/

      http://iosdesign.co/

      thread
    3. AdnanChowdhuryJan 2012
      Thanks.

      I am looking over the Apple documents now. I haven't come across Cocoa Design Patterns until you mentioned it. It seems like a good book.

      thread
    4. jsmartonlyDec 2011
      Reading document from Apple is the best way to start.

      For books, I found the following are very helpful:

      1) Cocoa Programming for Mac OS X (by Aaron Hillegass) 2) Cocoa Design Patterns (by Erik M. Buck and Donald A. Yacktman)

      thread
    5. ivanzhaoJun 2010
      Objective-C is fairly simple, while Cocoa is vast and complex. The distinct is important.

      It might take you awhile to get familiar with Cocoa and all its patterns built on top of NSObject.

      "Cocoa Design Patterns, by Buck and Yacktman" is a very good book to get the big picture right, but might be slightly overwhelming at the beginning (as there are many patterns/ways to solve the same problem in Cocoa).

      Read Apple's documents: I still find it the best way to learn the details of Cocoa. The writing is dry and quite dense, so you might need to read it multiple times.

      Another thing to remember is that Cocoa is a framework: it demands to be followed and not be fought against. 

      thread
    6. wallflowerMar 2010
      > Memory management in Objective-C isn't nearly as terrifying as I thought it would be but it is very frustrating to see the non-descriptive EXEC BAD ACCESS. I always make a ton of mistakes when trying out new things. Luckily, I'm good at debugging!

      At some critical point, Objective-C/Cocoa stops being the problem (EXC_BAD_ACCESS, IB gotchas, CoreData mysteries) and starts becoming the solution. Highly recommend "Cocoa Design Patterns"

      I really like Leah's tone in this essay. It sounds like she is having fun with the jump-in-the-deep-end and start treading code method of learning.

      thread

    Related

    Cover of Cocoa programming for Mac OS X
    2008–2026

    Cocoa programming for Mac OS X

    Aaron Hillegass
    20 recommend · 36
    Cover of Design Patterns in Ruby
    2009–2025

    Design Patterns in Ruby

    Russ Olsen
    15 recommend · 26
    Cover of A pattern language
    2007–2026

    A pattern language

    Christopher Alexander
    110 recommend · 368
    Cover of Design Patterns
    2007–2026

    Design Patterns

    Erich Gamma
    95 recommend · 491
    Cover of Patterns of software
    2007–2026

    Patterns of software

    Richard P. Gabriel
    31 recommend · 70
    Cocoa programming for OS XAaron Hillegass
    2012–2023

    Cocoa programming for OS X

    Aaron Hillegass
    3 recommend · 6
    Cover of The algorithm design manual
    2007–2026

    The algorithm design manual

    Steven S. Skiena
    recommend · 321
    195
    Cover of Refactoring to Patterns
    2009–2026

    Refactoring to Patterns

    Joshua Kerievsky
    15 recommend · 25