As i am learning OS X development and here i came across strange situation where i need to find out a way to build the app for target above 10.6 and if it is 10.7 then i need to call some newly added methods or enums. May be there is no such way but thought to ask it.
I guess there must be way to use it via Macros or something similar. I don’t want to create OS specific builds. Any help will be appreciated. May be there is no such way but thought to ask it.
Regards,
M P.
You can read the version from the property file:
In this way, you can build dynamic code without different versions by #ifdefine
EDIT: @MP Well, I understood that you do not want to generate version specific code. If you ready to do so, then it is quite easy. Simply use: