title: Swift/OS X - Remove Application Title Bar and Add Custom Close Button
body: <p>I'm working on a little mac app where I want a pretty specific style for the window. I want to remove the application's menu bar completely, and then go about adding a custom close button. (Just a little white 'X' with no borders.) The reason I want this is I'm looking to make the application's background image cover the entire window, not just the view controller area and a gray title bar splotched above. So far, my window controller contains this:</p>
  
  <pre><code>self.window!.titleVisibility = NSWindowTitleVisibility.Hidden;
  self.window!.titlebarAppearsTransparent = true
  self.window!.movableByWindowBackground  = true
  </code></pre>
  
  <p>All this does is remove the gray bar, but the buttons are left just where they were.</p>
  
  <p>Thanks for reading, all help is appreciated.</p>