Re: How to get SDK at compile time?
Re: How to get SDK at compile time?
- Subject: Re: How to get SDK at compile time?
- From: Sean McBride <email@hidden>
- Date: Tue, 12 Aug 2014 15:25:38 -0400
- Organization: Rogue Research Inc.
On Tue, 12 Aug 2014 16:44:50 +0700, Gerriet M. Denkmann said:
>At runtime I do:
>// 10.8.x or earlier needsSpecialTreatment
>BOOL needsSpecialTreatment = floor(NSFoundationVersionNumber) <=
>NSFoundationVersionNumber10_8;
>
>But how to do it at compile time?
>
>Like:
>
>#if BEFORE_10_10 <-- what to write here?
> NSString *infoPlistKey = kSMInfoKeyPrivilegedExecutables;
>#else
> NSString *infoPlistKey = @"SMPrivilegedExecutables";
>#endif
The SDK is MAC_OS_X_VERSION_MAX_ALLOWED. The deployment target is MAC_OS_X_VERSION_MIN_REQUIRED.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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