Separate names with a comma.
Discussion in 'Mac Programming' started by Blakeasd, May 4, 2011.
How to I add text to the end of an NSString?
You don't, NSString is immutable.
there is stringByAppendingString: which will return a new, autoreleased NSString with the current value plus the NSString passed in, but if you need to be altering a string "in place" you need NSMutableString. It has an appendString: method.
Create a new NSString with the new one added (either through stringByAppendingString or @"%@ blah blah",oldstring).
Or use NSMutableStrings.