title: How to resize an extra box with disclosure triangle in Cocoa?
body: <p>How to resize an extra box with disclosure triangle in Cocoa?</p>
  
  <pre><code>- (IBAction)disclosureTriangleClicked:(id)sender {
      NSWindow *window =[sender window];
      NSRect frame = [window frame];
      [otherBox frame].size.height +14;
      switch([sender state]) {
          case NSOnState:
              [otherBox setHidden:NO];
              //Must resize!
              break;
          case NSOffState:
              [otherBox setHidden:YES];
              //Must resize!
              break;
          default:
              break;
      }
  </code></pre>