• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multi-OS API Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Multi-OS API Question (From: "Heizer, Charles" <email@hidden>)

  • Prev by Date: Why is my app generating warnings about "Deregistering for sleep notifications"?
  • Next by Date: Re: NSTerminateLater and thread
  • Previous by thread: Multi-OS API Question
  • Next by thread: Why is my app generating warnings about "Deregistering for sleep notifications"?
  • Index(es):
    • Date
    • Thread