title: problem with a custom subclass of uitableview
body: <p>I am writing a custom subclass of UITableView. I would need this object itself to be its own data source and delegate, and this subclass would then have its own data source and delegate. This is done primarily so I can intercept calls to the datasource and delegate and potentially augment them before sending them off to their actual datasources.</p>
  
  <p>My class is defined as so.</p>
  
  <pre><code>CustomTableView : UITableView&lt;UITableViewDelegate, UITableViewDataSource&gt; {
     ...
     id customDataSource;
     id customDelegate;
  }
  </code></pre>
  
  <p>The problem comes when I try to set my data source and delegate.</p>
  
  <p>I would like to override uitableview's properties:</p>
  
  <pre><code>- (void)setDataSource(id&lt;UITableViewDataSource&gt;)ds {
     [super setDataSource:self]
     customDataSource = ds;
  }
  </code></pre>
  
  <p>Basically, I would like to tell the parent class(UItableView) to set the data source to self. I would then forward any callbacks to the customDataSource, after I have modified them.</p>
  
  <p>[super setDataSource:self] doesnt crash, but the datasource never gets set. Does anyone have any ideas? Thanks</p>