what's the difference between these two code blocks? Which is preferable? For a single append, or multiple appends?
NSString s = [[NSString alloc] initWithString
"Hello"];
s = [s stringByAppendingString
"World"];
NSMutableString ms = [[NSMutableString alloc] initWithString
"Hello"];
[ms appendString
"World"];
Oh, I'm a bit of a String newb, so if there are better ways to write these, do tell. I find doing all this writing kinda annoying when I'm used to doing "hello" + "world";
NSString s = [[NSString alloc] initWithString
s = [s stringByAppendingString
NSMutableString ms = [[NSMutableString alloc] initWithString
[ms appendString
Oh, I'm a bit of a String newb, so if there are better ways to write these, do tell. I find doing all this writing kinda annoying when I'm used to doing "hello" + "world";