title: Trying to replace deprecated loadnibnamed:owner
body: <p>I'm trying to replace the deprecated </p>
  
  <pre><code>[NSBundle loadNibNamed:@"Subscriptions" owner:self];
  </code></pre>
  
  <p>with this instead (only thing I can find that's equivalent)</p>
  
  <pre><code>[[NSBundle mainBundle] loadNibNamed:@"Subscriptions" owner:self topLevelObjects:nil];
  </code></pre>
  
  <p>but the dialog pops up and disappears right away instead of staying open like it was doing with the deprecated call. </p>
  
  <p>This code is inside a viewcontroller like this.  </p>
  
  <pre><code>- (id)init{
      self = [super init];
      if (self) {
          //[NSBundle loadNibNamed:@"Subscriptions" owner:self];
  
          [[NSBundle mainBundle] loadNibNamed:@"Subscriptions" owner:self topLevelObjects:nil];
      }
      return self;
  </code></pre>
  
  <p>}</p>
  
  <p>and I'm calling it from the appdelegate like this.  </p>
  
  <pre><code>SubscriptionsViewController *subscriptionsViewController = [[SubscriptionsViewController alloc] init];
  [subscriptionsViewController.window makeKeyAndOrderFront:self];
  </code></pre>
  
  <p>Is there anything I'm missing?  It seems straight forward to me. </p>