title: Pointer to NSWindow Xib after loading it?
body: <p>In my code below, CustomWindow is a subclass of NSWindow.</p>
  
  <pre><code>CustomWindow *window = [[CustomWindow alloc] init];
  if (![NSBundle loadNibNamed:@"NibName" owner:window])
  [window center]; // doesn't work
  </code></pre>
  
  <p>How do you get a pointer to control your XIB after you load it so you can do things such as centering the NSWindow (I mean the serialised one that resides inside the XIB)? </p>
  
  <p>What am i doing wrong here?</p>