Ray's playground

 

Composite(Chapter 13 of Pro Objective-C Design Patterns for iOS)

When Would You Use the Composite Pattern?
You would naturally think about using the pattern when You want to have abstract tree representation of objects (part-whole hierarchies).
You want clients to treat all objects in the composite structure and individual objects uniformly.

posted on 2012-04-25 14:21  Ray Z  阅读(225)  评论(0编辑  收藏  举报

导航