title: Cocoa: How to set window title?
body: <p>I have a Cocoa application with a secondary window created using a subclass of NSWindowController. I wish to set the window title. The documented method call is setTitle:. I have called this from within the window controller as follows:</p>
  
  <pre><code>- (void)windowDidLoad
  {
      // set window title
      [[self window] setTitle:@"test string"]; 
  }
  </code></pre>
  
  <p>This does not affect the title of the window though.</p>
  
  <p>Any suggestions please?</p>