Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libsystem compatability from os 10.2 to 10.4




On Feb 27, 2007, at 10:03 PM, Chris Hanson wrote:

On Feb 27, 2007, at 7:58 AM, Shawn Erickson wrote:

I suggest you set the SDK to the version of OS that you want to be able to use API from (say 10.4). As needed you can temporarily specify the max OS version to be 10.2 (MAC_OS_X_VERSION_MAX_ALLOWED) to cause the availability macros to complain about usage of post 10.2 API so that you can make sure you are doing the correct runtime checks.

There are three fairly simple mappings that describe what the original poster wants to do. As with memory management, please don't derive your own rules of thumb.

Why I linked the relevant docs on this topic...

In particular, please do not shortcut the build settings and modify the AvailabilityMacros directly.

I wasn't trying to imply that one should do that... however the last sentence in my prior email is incorrect. I was misremembering how I was quickly toggling min/max OS version last year when I was trying to validate the 10.3.9 and later code I was working on was correctly doing runtime checks and min/max target ifdefs of code blocks. I was actually specifying MACOSX_DEPLOYMENT_TARGET and/or SDKROOT on the command line to xcodebuild to temporarily override the project settings... it wasn't MAC_OS_X_VERSION_MAX_ALLOWED (however I was using MAC_OS_X_VERSION_MAX_ALLOWED in ifdefs). Sorry for any confusion.


The main point I was trying to make is that using the 10.2.8 SDK is not required for code to function on 10.2.8.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: libsystem compatability from os 10.2 to 10.4 (From: Greg Guerin <email@hidden>)
 >Re: libsystem compatability from os 10.2 to 10.4 (From: Shawn Erickson <email@hidden>)
 >Re: libsystem compatability from os 10.2 to 10.4 (From: Chris Hanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.