Hello,
I'm using some API's which are only available on 10.5 and above but I want to 
compile my app to run on 10.4 and higher. How can I include multiple bits of 
code so that if the system is running 10.4 it will run "Code A" and if 10.5 and 
higher run "Code B"?

Example 
if ( os == 104 ) {
        // Run 10.4 Code
} elseif ( os >= 105 ) {
        // Run 10.5 and higher API
}

Thanks,
Charles_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to