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 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 never prints.
>> Is it possible to compile specific code based on target_name or using the 
>> preprocessor macros? Or am I wasting my time with 
>> this?_______________________________________________
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/hank.list%40runbox.com
>> 
>> This email sent to hank.l...@runbox.com
>> 
> 

_______________________________________________

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

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

Reply via email to