Re: Defining code based on build target

2011-05-18 Thread Development
Never mind I deleted my build directory manually and it worked. Thank you very much :) On May 18, 2011, at 1:18 PM, Hank Heijink (Mailinglists) wrote: > Try #ifdef instead of #if. > > On May 18, 2011, at 4:09 PM, Development wrote: > >> I have a version of an application that I want to contai

Re: Defining code based on build target

2011-05-18 Thread Kyle Sluder
On May 18, 2011, at 1:09 PM, Development wrote: > I have a version of an application that I want to contain different code > based on the builded target. > for instance I have a lite version. After defining the ISFREE value in the > preprocessor macros... I tried using: > > #if ISFREE > >

Re: Defining code based on build target

2011-05-18 Thread Development
I've actually tried both... strangest part even if I choose #ifndef i get nothing On May 18, 2011, at 1:18 PM, Hank Heijink (Mailinglists) wrote: > Try #ifdef instead of #if. > > On May 18, 2011, at 4:09 PM, Development wrote: > >> I have a version of an application that I want to contain di

Re: Defining code based on build target

2011-05-18 Thread Howard Siegel
What you are trying to do is perfectly fine to create a free vs non-free version of your app. The sticking point is how are you defining ISFREE??? The #if takes an expression which is evaluated to see if it is true (non-zero) or false (zero). Did you define ISFREE to be a non-zero numeric value??

Re: Defining code based on build target

2011-05-18 Thread Hank Heijink (Mailinglists)
Try #ifdef instead of #if. On May 18, 2011, at 4:09 PM, Development wrote: > I have a version of an application that I want to contain different code > based on the builded target. > for instance I have a lite version. After defining the ISFREE value in the > preprocessor macros... I tried usin

Defining code based on build target

2011-05-18 Thread Development
I have a version of an application that I want to contain different code based on the builded target. for instance I have a lite version. After defining the ISFREE value in the preprocessor macros... I tried using: #if ISFREE NSLog(@"It's Free"); #endif Of course the line ne