Re: Multi-OS API Question
Re: Multi-OS API Question
- Subject: Re: Multi-OS API Question
- From: Ken Thomases <email@hidden>
- Date: Fri, 03 Jun 2011 19:23:55 -0500
On Jun 3, 2011, at 6:57 PM, Heizer, Charles wrote:
> 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
> }
This is the Apple documentation on this subject:
http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/cross_development/
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden