title: NSView does not resize when window changes to full screen
body: <p>When the cocoa application starts, the NSWindow automatically change to full screen resolution. However, the custom view in the window does not resize at all. I am using auto layout so I thought it should change automatically. </p>
  
  <p>I tried to resize the frame in this function but it does work still:</p>
  
  <pre><code> -(void)windowDidResize:(NSNotification *)notification{
          // windowView - is custom view in NSWindow
          [self.windowView setFrame:self.window.frame];
   }
  </code></pre>
  
  <p>Here is the screenshot: (view not in full size mode.)</p>
  
  <p><img src="https://i.stack.imgur.com/rHefq.png" alt="enter image description here"></p>
  
  <p>Here is the view in full size mode. I have no idea why the view does not enlarge with window.</p>
  
  <p><img src="https://i.stack.imgur.com/fSXCR.png" alt="enter image description here"></p>