title: How can I reference an Object and edit it's properties from a NSMutableArray?
body: <pre><code>NSMutableArray *persons = [ [ NSMutableArray alloc ] init ];
  </code></pre>
  
  <p>How can I edit person attributes without doing something like:</p>
  
  <pre><code>Person *p = [ [ Person alloc ] init ];
  p = [ persons objectAtIndex:0 ];
  p.name = "James Foo";
  [ persons replaceObjectAtIndex: ([ persons count ] - 1 )  withObject:p];
  </code></pre>
  
  <p>I would like to do something like:</p>
  
  <pre><code>[ persons objectAtIndex:0 ].name = "James Foo";
  </code></pre>