title: Custom View make visible an hide
body: <p>I am writing a cocoa app. I have a hidden custom View. I want to make it visible by clicking <code>show</code> and I want to hide it by clicking <code>hide</code>. My idea was to make it like in a window.
  my code:</p>
  
  <pre><code>- (IBAction)show:(id)sender {
      [customView makeKeyAndOrderFront:self];
  }
  
  - (IBAction)hide:(id)sender {
      [customView close];
  }
  </code></pre>
  
  <p>It does not work for me. How can I do it?</p>