title: NSWindowDelegate functions cannot work
body: <p>I'm writing an application using NSWindowDelegate. However, when I resize the window, it doesn't call function:</p>
  
  <blockquote>
    <p>func windowDidResize(notification: NSNotification)</p>
  </blockquote>
  
  <p>This is my class </p>
  
  <blockquote>
    <p>class ViewController: NSViewController, <strong>NSWindowDelegate</strong> {}</p>
  </blockquote>
  
  <p>and the storyboard:</p>
  
  <p><a href="http://i748.photobucket.com/albums/xx128/letatanu/Screen%20Shot%202015-09-05%20at%203.52.41%20AM.png" rel="nofollow">This is my storyboard</a></p>
  
  <p>I linked delegate to my window. 
  But it doesn't work. Can you help me fix the error? Thank you.</p>