Hi,
EDIT: My example might have created some confusion. I have changed the example below to reflect what I want to achieve. Hope this is more clear.
I am trying to define a constant in my objective-c code. I am using the standard #define to do this. Eg:
#define bluh "a"
I would like to define another constant like this
#define blah bluh +@"b"
The compiler throws up an error (rightly so) "invalid operands to binary +". How can I get this to work? Thanks for the help.
I also tried the Objective-C way like this:
NSString *const A =@"a";
NSString *const B = [NSString stringWithFormat:@"%@%@",A,@"b"];
But this gives me another error "Initializer element is not constant" Any help will be appreciated.
Cheers,