0

In my app i have Preferences window. To load this window i use this code

- (IBAction)showPrefWindow:(id)sender {

    NSWindowController * windowController = [[NSWindowController alloc] initWithWindowNibName:@"PrefWindow"];
    [windowController window];
}

but this is haven't effect (preferences window don't open).

When i use Xcode 4.1 DP1 this code work. Now i upgrade Xcode to 4.2 and code not work.

Where may be problem? Thaks!

Nikolai Nagornyi
  • 1,312
  • 2
  • 11
  • 26

1 Answers1

1

have you tried calling "[[windowController window] makeKeyAndOrderFront:windowController];"?

Antwan van Houdt
  • 6,989
  • 1
  • 29
  • 52