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

Cocoa Tip of the Day, 1/29/10

Don't ignore old versions of OS X.

A lot of people are still using 10.4, and quite a few still use 10.3.  If you depend on newer features, consider providing fall-back code.  Sometimes this is very easy to do.  For example, the -forwardingTargetForSelector: mechanism introduced with 10.6 can be implemented using -forwardInvocation:, albeit much more slowly.  If you are using classes that were introduced with newer versions of OS X, like NSCache, you can often include the GNUstep version in a loadable bundle for older versions of OS X.

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