title: How to make a smooth, rounded, volume-like OS X window with NSVisualEffectView?
body: <p>I'm currently trying to make a window that looks like the Volume OS X window:<br>
  <img src="https://i.stack.imgur.com/CdU1h.png" alt="enter image description here"></p>
  
  <p><br>To make this, I have my own <code>NSWindow</code> (using a custom subclass), which is transparent/titlebar-less/shadow-less, that has a <code>NSVisualEffectView</code> inside its contentView. Here's the code of my subclass to make the content view round:<br></p>
  
  <pre><code>- (void)setContentView:(NSView *)aView {
     aView.wantsLayer            = YES;
     aView.layer.frame           = aView.frame;
     aView.layer.cornerRadius    = 14.0;
     aView.layer.masksToBounds   = YES;
  
     [super setContentView:aView];
  }
  </code></pre>
  
  <p><br>
  And here's the outcome (as you can see, the corners are grainy, OS X's are way smoother):<br>
  <img src="https://i.stack.imgur.com/kXakJ.png" alt="enter image description here">
  <br>
  Any ideas on how to make the corners smoother? Thanks</p>