• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unable to Load Window NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to Load Window NIB


  • Subject: Unable to Load Window NIB
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Tue, 10 Jan 2006 00:02:23 -0800

Does anyone know why I can't load a NIB file?
The MainMenu.nib loads without hassle.

I've been loading NSWindowControllers in other projects but this one escapes me.

Ric.


Running XCode 2.2 IB for OS X 10.2+

Runtime Error:
2006-01-09 23:44:12.229 Global Village[883] -[GVWindowController loadWindow]: failed to load window nib file 'GVWindowController'.


Inside AppDelegate:

...
- (IBAction)loadGVWindowController:(id)sender {
    NSLog(@"{loadGVWindowController}");
    if (!gvWindowController) {
        [self setGVWindowController:[[GVWindowController alloc] init]];
        [[self gvWindowController] showWindow:self];
    }
}
...
-------------------------------------------------------------

@interface GVWindowController : NSWindowController {
...
}
...

@implementation GVWindowController

#pragma mark Initialization

- (id)init {
    return [super initWithWindowNibName:@"GVWindowController"];
}

// ------------------------------------------------------------------------ ---------------------------------

- (void)awakeFromNib {
    [[self window] center];
    [[self window] makeKeyWindow];
}
...


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Unable to Load Window NIB
      • From: j o a r <email@hidden>
  • Prev by Date: creating custom widgets(?)
  • Next by Date: Re: Crash in _blinkCaretTimerAction (NSTextView)
  • Previous by thread: Re: creating custom widgets(?)
  • Next by thread: Re: Unable to Load Window NIB
  • Index(es):
    • Date
    • Thread