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

ulquiorra

macrumors member
Original poster
Jun 17, 2009
38
0
hello everyone,
I would like to know what the quickest way is of assigning a value from
let's say
NSMutableArray testarray = [[ NSMutableArray alloc ] initWithObjects:mad:"test , @"test2, nil]

I would like to have a NSMutableString TESTstring get the value test.

does anyone know the quickest way to realize this.

( forgive me for this question )
 
Code:
NSMutableArray* testarray = [[NSMutableArray alloc] initWithObjects:@"test", @"test2", nil];
NSMutableString* s = [[testarray objectAtIndex:0] mutableCopy];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.