• 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
Re: Unable to Load Window NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to Load Window NIB


  • Subject: Re: Unable to Load Window NIB
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Tue, 10 Jan 2006 12:59:55 -0800

FROM : j o a r
DATE : Tue Jan 10 18:32:35 2006

On 10 jan 2006, at 17.46, Frederick C. Lee wrote:

> No, I haven't verified.
> How would I go about doing that?
> I did a search of 'verify' in the XCode help and only came up on
> how to verify the entity diagram.


Your application is really a folder. You can right-click on your app icon and select "Show Package Contents" to see what's inside it. If your nib file is not to be found, it's no wonder your app can't load it. Should that be the case, you need to see what's wrong with your Xcode project. Most likely the nib file is not added to the app target, or missing from the app target copy files build phase.

j o a r


I did a visual of the /build/...app/Contents/Resources folder and found GVWindowController.nib.
Via Darwin, I also found other stuff inside it:


[/Users/Ric]ls /Users/Ric/workarea/Ecrron\ Work\ Area/Core-Data\ Project/Global\ Village/build/Debug/Global\ Village.app/Contents/ Resources/GVWindowController.nib/
classes.nib info.nib keyedobjects.nib



So I'm back to square '1':

======================================
GVWindowController.m

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

(1)
(gdb) po [self window]
2006-01-10 12:55:30.496 Global Village[693] -[GVWindowController loadWindow]: failed to load window nib file 'GVWindowController'.
Cannot access memory at address 0x0


======================================
AppDelegate.m
:

- (GVWindowController *)gvWindowController {
	return [[gvWindowController autorelease] retain];
}

- (void)setGVWindowController:(GVWindowController *)inController {
	[inController retain];
	[gvWindowController release];
	gvWindowController = inController;
    return;
}

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

(2):
(gdb) po [self gvWindowController]
<GVWindowController: 0x384f90>

(3)
(gdb) po [gvWindowController window]
Cannot access memory at address 0x0
2006-01-10 12:52:16.233 Global Village[667] -[GVWindowController loadWindow]: failed to load window nib file 'GVWindowController'.



-[GVWindowController loadWindow]: failed to load window nib file 'GVWindowController'.
_______________________________________________
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
  • Prev by Date: Re: Cocoa control in carbon window
  • Next by Date: Re: Cocoa control in carbon window
  • Previous by thread: Re: Unable to Load Window NIB
  • Next by thread: Special characters for buttons
  • Index(es):
    • Date
    • Thread