-1

I hope you guys can help me, normally I don't ask for help, but I just have this problem for a while.

I have this action which should create a new window from my XIB file

-(void)loginSuccess {
    NSLog(@"Login success delegate");

    Dashboard *dashboard = [[Dashboard alloc] initWithWindowNibName:@"Dashboard" owner:self];
    [dashboard showWindow:nil];
    [dashboard.window makeKeyAndOrderFront:nil];
    BOOL loaded = [dashboard isWindowLoaded];

    NSLog(@"Dashboard window loaded: %i", loaded);  
    NSLog(@"Dashboard window visible: %i", [dashboard.window isVisible]);

}

And got this result

2011-11-15 10:32:23.525 DownloadApp[2676:707] Login success delegate
2011-11-15 10:32:23.533 DownloadApp[2676:707] Dashboard window loaded: 1
2011-11-15 10:32:23.533 DownloadApp[2676:707] Dashboard window visible: 0
Shawn Chin
  • 84,080
  • 19
  • 162
  • 191

1 Answers1

0

This could be a missing binding between the actual window object and the window property of the controller. Have you checked what happens if you check "Visible at launch" for the window?

yan.kun
  • 6,820
  • 2
  • 29
  • 38