Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
How to I add text to the end of an NSString?
Thanks

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.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.