Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cocoaのデザインパターンまとめ
  • Singleton
  • Abstract Factory - |NSWindow| (Theme, Style)
  • Builder - WebKit Document Representation
  • Prototype - |NSCollectionViewItem|, Cell
  • FactoryMethod - |NSDocument|, ClassCluster
  • Adapter - Delegate, CocoaBinding
  • Bridge - |NSImageRep|, Wrapper
  • Composite - View Hierarchy, Tree
  • Decorator - |NSBox|, |NSScrollView|
  • Facade - |NSTextView|
  • Flyweight - |NSNumber|
  • Proxy - |NSProxy|
  • Iterator - Object Enumerator
  • Command - Target and Action
  • Chain of Responsibility - First Responder
  • Memento - |NSUndoManager|
  • Observer - NotificationCenter,
  • Mediator - Controller
  • Interpreter - Grapher.app implementation
  • State
  • Strategy - |NSURLProtocol|
  • Template Method - |-drawRect|, |-layoutSubviews|, Abstract Class (Method)
  • Visitor

c.f. Dynamic Objective-C (Makoto Kinoshita) http://hmdt.jp/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.