Skip navigation.
 
mlRe: How to ignore Tiger-only category methods on Leopard
FROM : Nick Zitzmann
DATE : Wed Jan 30 23:09:01 2008

On Jan 30, 2008 AD, at 3:00 PM, Keith Blount wrote:

> So, my question is, how do I have the preprocessor check the OS 
> version so that it can skip these methods in an #if #endif block if 
> the user is running Leopard?



You can't. You can, however, make it so that the method is only 
present when Leopard is the deployment target by doing something like 
this:

#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
...
#endif

That way, the method will be included as long as you're targeting 
Tiger, but once you change that to Leopard, then your implementation 
will no longer be used.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlHow to ignore Tiger-only category methods on Leopard Keith Blount Jan 30, 23:00
mlRe: How to ignore Tiger-only category methods on Leopard Nick Zitzmann Jan 30, 23:09
mlRe: How to ignore Tiger-only category methods on Leopard Mark Munz Jan 30, 23:14