title: How can I disable the close button?
body: <p>I need some help with figuring out how to disable/hide the close, minimize, and resize buttons in OS X Cocoa and Swift 2. Here's the code I tried. I know it's for the Title Bar, but I thought I'd try it anyway:</p>
  
  <pre><code>self.window.titleVisibility = NSWindowTitleVisibility.Hidden;
  </code></pre>
  
  <p>Does any one know how to do that? I'm using Swift 2, OS X Cocoa, and Xcode 7.2. Thanks!</p>