title: How to connect outlet in a table cell view?
body: <p>I am using a view-based table, and I want to create an outlet for an element in a cell view. I cannot get the outlet to connect though... it's always <code>nil</code>.</p>
  
  <p>Specifically, I have a <code>NSProgressIndicator</code> in a table cell and want to manipulate it in code.</p>
  
  <p>Here's what I have so far:</p>
  
  <p>I have created a subclass of <code>NSTableView</code>, with the corresponding outlet property:</p>
  
  <pre><code>@interface MyTableCellView : NSTableCellView
  @property IBOutlet NSProgressIndicator *myProgressIndicator;
  @end
  
  @implementation MyTableCellView
  -(void)awakeFromNib
  {
      // _myProgressIndicator is nil!
  }
  @end
  </code></pre>
  
  <p>And I have set the custom class in the nib. The existing <code>NSTableCellView</code> is replaced with <code>MyTableCellView</code> via the dropdown.</p>
  
  <p>At this point, some observations:</p>
  
  <ul>
  <li><p>If I <kbd>Ctrl</kbd>+Click and drag the progress indicator to connect this outlet, it is not shown. <img src="https://i.stack.imgur.com/k9RXy.jpg" alt="enter image description here"> <img src="https://i.stack.imgur.com/KYlmo.jpg" alt="enter image description here"></p></li>
  <li><p>Likewise, if I try to <kbd>Ctrl</kbd>+Click and drag the progress indicator using the assistant editor, I can only connect to the property via binding. It doesn't recognize this as a valid outlet. <img src="https://i.stack.imgur.com/U4ZKT.jpg" alt="enter image description here"></p></li>
  <li><p>However this outlet IS shown on the sidebar, with a warning that it doesn't exist: <img src="https://i.stack.imgur.com/XkPc4.jpg" alt="enter image description here"></p></li>
  <li><p>I know <code>MyTableCellView</code> is being used. Breakpoint on <code>awakeFromNib</code> confirms this, and confirms that <code>_myProgressIndicator</code> is <code>nil</code>.</p></li>
  </ul>
  
  <p>This is a sandbox project, with barely more than what I've described.</p>
  
  <p>SO, how do I access this progress indicator from code?</p>