How to get SDK at compile time?

2014-08-12 Thread Gerriet M. Denkmann
At runtime I do: // 10.8.x or earlier needsSpecialTreatment BOOLneedsSpecialTreatment = floor(NSFoundationVersionNumber) = NSFoundationVersionNumber10_8; But how to do it at compile time? Like: #if BEFORE_10_10 -- what to write here? NSString *infoPlistKey =

Re: How to get SDK at compile time?

2014-08-12 Thread Manoah F. Adams
On Aug 12, 2014, at 02:44:000, Gerriet M. Denkmann wrote: 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

Re: How to get SDK at compile time?

2014-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2014, at 17:20, Manoah F. Adams mhfad...@federaladamsfamily.com wrote: On Aug 12, 2014, at 02:44:000, Gerriet M. Denkmann wrote: At runtime I do: // 10.8.x or earlier needsSpecialTreatment BOOL needsSpecialTreatment = floor(NSFoundationVersionNumber) =

Re: How to get SDK at compile time?

2014-08-12 Thread Sean McBride
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