Re: How are you supporting pre-10.4?
Re: How are you supporting pre-10.4?
- Subject: Re: How are you supporting pre-10.4?
- From: Steve Christensen <email@hidden>
- Date: Wed, 21 Feb 2007 13:59:06 -0800
On Feb 21, 2007, at 1:13 PM, fred ross-perry wrote:
I am using XCode 2.4.1. Building what was a CodeWarrior/PowerPlant
application. Building, running, life is good.
My build has 2 targets:
Intel-only, gcc 4.0, OS X 10.4 SDK
ppc-only, gcc 3.3, OS X 10.2 SDK
Our installer chooses which one to install based on platform.
We figured this was the simplest way to support PPCs which might
be running systems earlier than 10.4.
Our users will not be dragging apps from one platform to another.
Notice that the first target is not a UB, just Intel.
Is there a compelling reason why we should have a true UB
with a PPC side, for 10.4 and up?
I build only UB with Intel 10.4+ and PPC 10.3+ (was 10.2+). That
simplifies both your build process and installer, plus handles the
case where a user -does- drag an app from one platform to another.
I don't think there's any really good reason for having a PPC build
for 10.4+, if you also have a pre-10.4 version. You have to write the
pre-10.4 code anyway, so just test for features and do the right thing.
For handling pre-anything, I do the following as an example. All
callers use the wrapper routine that hides the details so you don't
have to have conditionals all over your code. Depending upon the
complexity of the wrapper, it could even be inlined so the wrapper
call effectively disappears.
Rect* GetQDPictBounds(PicHandle picH, Rect* outRect)
{
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_3
if (QDGetPictureBounds == NULL)
{
*outRect = *((*picH)->picFrame);
return outRect;
}
#endif
return QDGetPictureBounds(picH, outRect);
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden