Unable to Load Window NIB
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