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 (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