Accessing variable set in 'Other C Flags'
Accessing variable set in 'Other C Flags'
- Subject: Accessing variable set in 'Other C Flags'
- From: Miles <email@hidden>
- Date: Mon, 8 Jun 2009 13:18:43 -0700
I was reading on a couple blogs about setting 'Other C Flags' to
-DTARGET_NAME=${TARGET_NAME} so that I can have multiple targets and
differentiate between them in my code. But when I try to access it in my
code it keeps treating the value of TARGET_NAME as a variable.
In other words, if TARGET_NAME = "FullVersion", and I try to check it:
NSString *version = [NSString stringWithFormat:@"%@", TARGET_NAME];
I get the error: 'FullVersion' undeclared (first use in this function)
How can I access it and treat it as a string???
Thanks!
_______________________________________________
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