Are there any shortcuts to (
NSString *myString = @"This";
NSString *test = [myString stringByAppendingString:@" is just a test"];
string myString = "This";
string test = myString + " is just a test";
Two answers I can think of... neither is particularly as pleasant as just having a concatenation operator.
First, use an
NSMutableString, which has an
appendString method, removing some of the need for extra temp strings.
Second, use an
NSArray to concatenate via the