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

Gerriet.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to