Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gang of four design patterns -- Objective C sample code? [closed]

I'm curious if anyone knows of any downloadable Objective C sample code for the gang of four design patterns out there? I am looking for working sample XCode projects and don't mind paying!

Incidentally, if you're looking for other languages, you could start here for Java or here for various languages

like image 363
William Jockusch Avatar asked Jun 28 '12 03:06

William Jockusch


2 Answers

It's no Gang of Four but Apress has Pro Objective-C Design Patterns for iOS by Carlo Chung which has many of these patterns in it. Other than that, I'm not sure of one place that has so many of these patterns represented in Objective C.

like image 196
scottheckel Avatar answered Oct 06 '22 01:10

scottheckel


The following link has covered some of the Design Patterns

  1. Facade (One single interface above a complex hierarchy)
  2. MVC(Most popular,nothing to say)
  3. Decorator(View dependent models)
  4. Composite(Complex hierarchy of views as well as Objects)
  5. Adapter (Protocol Specific)
  6. Observer(adding observer while property value changes)
    6.1. KVO (Key Value Observing Pattern,associated with Observer)
    6.2. Notification Style
  7. Memento (Archiving the View's state and restoring on app reload)
  8. Command (Most commonly known as Target-Action design pattern)

generally used to solve some issues found while developing Applications.... http://www.raywenderlich.com/46988/ios-design-patterns

like image 34
Sauvik Dolui Avatar answered Oct 06 '22 01:10

Sauvik Dolui