title: How to bind to NSArrayController's arranged objects
body: <p>I would like to programmatically bind a custom class (<code>MyClass</code>) array to an array controller (<code>NSArrayController</code>) with its content bound to another array (<code>modelArray</code>). <code>MyClass</code> displays the content of the array, like a <code>NSTableView</code>.</p>
  
  <p>My problem is: how to create this binding in such way that the mutable array's methods are called, that is the methods</p>
  
  <pre><code>-(void) insertObject:(id)object inContentAtIndex:(NSUInteger)index
  -(void) removeObjectFromContent:(id) object
  </code></pre>
  
  <p>(1) If I bind in this way, the above methods are called but the controller's content is no longer bound to the <code>modelArray</code> (obviously)</p>
  
  <pre><code>[myArrayController bind:@"contentArray" toObject:myClassInstance withKeyPath:@"content" options:nil];
  </code></pre>
  
  <p>(2) If I bind in these ways only the <code>setContent:</code> and <code>content</code> methods are called and not the mutable methods. Also I've tried to remove those methods (<code>setContent:</code> and <code>content</code>) but it only raises an exception <code>setValue:forUndefinedKey:</code></p>
  
  <pre><code>[myClassInstance bind:@"content" toObject:myArrayController withKeyPath:@"arrangedObjects" options:nil];
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[myClassInstance bind:@"content" toObject:myArrayController withKeyPath:@"content" options:nil];
  </code></pre>
  
  <p>I don't believe that the whole table's array is re-set each time a line is added when bound to an array controller, and I'd like to have the same kind of binding.</p>