Jul 20, 2011, 02:50 PM
I'm throwing together an NSArray, within which I would like to add descriptions that are about a paragraph long. To my knowledge NSString is not the best way to store this information. What would you use?
Jul 20, 2011, 02:51 PM
To my knowledge NSString is not the best way to store this information.
Jul 20, 2011, 05:38 PM
If the intent is to store text and attributes, maybe NSAttributedString (http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/Reference/Reference.html). But you didn't ask about attributes or formatting, so that's just a guess.
If the intent is to have mutable text, maybe NSMutableString. And you didn't mention mutability or editability, so that's another guess.
Otherwise I'm with dejo: Why not NSString? Who's been bad-mouthing the mild-mannered yet unprepossessing NSString, and where did you read these vile accusations?