Why do I have to call showWindow on my NSWindowController twice on 10.5?
问题 I've got a subclass of an NSWindowController that I'm using to load a window from a nib and show it on the screen. Below is the code that is called when I want to show the window. On 10.6 when showCustomWindow is called the window is displayed, but on 10.5 this method has to be called twice to get the window to display. -(IBAction)showCustomWindow:(id)sender { if(!windowController){ windowController = [[MyWindowController alloc] initWithWindowNibName:@"MyWindow"]; } [windowController