title: Add/remove rows to/from NSTableView in Objective-C
body: <p>I'm making a simple Todo application in Cocoa. I have added a class (and an NSObject to the XIB) MATodoController:</p>
  
  <p>MATodoController.h</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  
  
  @interface MATodoController : NSObject
  {
      IBOutlet NSTableView *table;
  }
  
  - (IBAction)addItem:(id)sender;
  - (IBAction)removeItem:(id)sender;
  
  @end
  </code></pre>
  
  <p>MATodoController.m</p>
  
  <pre><code>#import "MATodoController.h"
  
  
  @implementation MATodoController
  
  - (void)addItem:(id)sender
  {
  
  }
  
  - (void)removeItem:(id)sender
  {
  
  }
  
  @end
  </code></pre>
  
  <p>I have an outlet 'table' to an NSTableView and two actions 'addItem' and 'removeItem' called by button clicks.</p>
  
  <p><strike>Is there a way (ofcourse there is a way)</strike>How can I add new rows / remove selected rows to and from an NSTableView (users can select multiple rows at once)?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Oh, one more thing: The NSTableView has only one column (which consists of checkboxes).</p>