Home > Blogs > Cocoa Tip of the Day, 1/26/10

Cocoa Tip of the Day, 1/26/10

Copy design patterns from Cocoa.

There are a number of design patterns that are reused in Cocoa and you will often get some benefit from using them in your own code.  Class clusters are a good example.  They let you hide different versions of your class that are optimised for different usage behind a single apparent interface.

For more tips, and more detail about this tip, please see my new book,
Cocoa Programming Developer's Handbook,
available in print and electronic formats.