NSMutableArray *persons = [ [ NSMutableArray alloc ] init ];
How can I edit person attributes without doing something like:
Person *p = [ [ Person alloc ] init ];
p = [ persons objectAtIndex:0 ];
p.name = "James Foo";
[ persons replaceObjectAtIndex: ([ persons count ] - 1 ) withObject:p];
I would like to do something like:
[ persons objectAtIndex:0 ].name = "James Foo";