I wrote this to concatenate two strings:
#define Append(x, y) [NSString stringWithFormat:@"%@%@",x,y]
However, what if I have more than just two NSString objects. Is there way to modify this to work for any number of string values?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does it have to be a macro? If you can use a method, how about this:
Which you would call with something like:
Remember to terminate the argument list with a nil.