How add data from NSMutableString into NSArray?

nsarray, nsmutablestring, objective-c

Solution

Actually, Mike is wrong. If you want to instantiate an NSArray with a single NSMutableString object, you can do the following:

NSMutableString *myString; //Assuming your string is here
NSArray *array = [NSArray arrayWithObject:myString];

There is no `arrayWithElements` in `NSArray` (see NSArray documentation)

Problem

is it an possible to add a value from an `NSMutableString` into an `NSArray`? Whats the snippet?

Original source