Mountain Lion introduced new APIs, some of which we had implemented as categories in our project.
For examples, we have a category NSColor+CGColorAdditions
that implemented CGColor
and colorWithCGColor:
for NSColor
. These methods have been added in Mountain Lion.
Ideally, we would like to use these categories if the client OS is older than Mountain Lion, and not use them if it's Mountain Lion. How can we do this? Or is there a better alternative?