title: How to fix focus ring's highlight being clipped when using CALayer?
body: <p>The window's contentView has NSTextFields. (MacOS)</p>
  
  <p>i'm using interface builder to setup the window and its features, so nothing in awakeFromNib except this:</p>
  
  <pre><code>[[self.window contentView] setWantsLayer:YES];
  CALayer *layer = [[self.window contentView] layer];
  CGColorRef lightGray = CGColorCreateGenericGray(0.93, 1.0);
  [layer setBackgroundColor:lightGray];
  CGColorRelease(lightGray);
  </code></pre>
  
  <p>However, the textField's focus ring is not visible outside the bounds of the textField. </p>
  
  <p>With layer:
  <img src="https://i.stack.imgur.com/1rxFJ.png" alt="" title="Hosted by imgur.com" /></p>
  
  <p>Without a layer:
  <img src="https://i.stack.imgur.com/z5nlU.png" alt="" title="Hosted by imgur.com" /></p>
  
  <p>i'm thinking that this display issue is something bigger than this, but i can't find an example of this problem, (and solution).</p>
  
  <p>anyone?</p>