title: How to make NSView not clip its bounding area?
body: <p>I created an empty Cocoa app on Xcode for OS X, and added:</p>
  
  <pre><code>- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
      self.view = [[NSView alloc] initWithFrame:NSMakeRect(100, 100, 200, 200)];
      self.view.wantsLayer = YES;
      self.view.layer = [CALayer layer];
      self.view.layer.backgroundColor = [[NSColor yellowColor] CGColor];
      self.view.layer.anchorPoint = CGPointMake(0.5, 0.5);
      self.view.layer.transform = CATransform3DMakeRotation(30 * M_PI / 180, 1, 1, 1);
  
      [self.window.contentView addSubview:self.view];
  }
  </code></pre>
  
  <p>But the rotated layer's background is clipped by the view's bounding area:</p>
  
  <p><img src="https://i.stack.imgur.com/AAEjU.png" alt="enter image description here"></p>
  
  <p>I thought since some version of OS X and iOS, the view won't clip the content of its subviews and will show everything inside and outside?  On iOS, I do see that behavior, but I wonder why it shows up like that and how to make everything show? (I am already using the most current Xcode 4.4.1 on Mountain Lion).  </p>
  
  <p>(note: if you try the code above, you will need to link to Quartz Core, and possibly import the quartz core header, although I wonder why I didn't import the header and it still compiles perfectly)</p>