Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What are some reasons why my App is not loading the NIB?



This probably won't be helpful, but just to cover the initial bases:

1. Does the window you expect to see on load have its "Visible at launch time" attribute checked in Interface Builder?

These next two probably aren't the case, since according to your stack trace, you're getting past finding the file by name. However, it's something to check if you're out of options.

2. If this is your only nib, does its file name match the value for NSMainNibFile in your application's Info.plist?

3. Is your nib file listed in your target's Copy Bundle Resources phase?

- Justin


On Aug 12, 2005, at 1:40 AM, John Draper wrote:

This is the stack crawl - the application is almost virtually empty.
It has a NIB file with 2 actions and 3 outlets.  I connected them
up,  but when I run the application,  I get;

#0 0x908611ec in objc_msgSend
#1 0x92ea1ff4 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
#2 0x92f93d04 in +[NSCustomResource pushBundleForImageSearch:]
#3 0x92eeaf28 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:]
#4 0x92f69e00 in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:]
#5 0x92f7b5f4 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#6 0x92f69c68 in NSApplicationMain
#7 0x000e0f74 in main at main.m:13


Can someone give me any hints on what I need to check to see why
it's not loading the NIB file?  Is it a "permission" issue?

I just started an empty project, made a controller.h and controller.mm
file.


I also added some .dylib files and built a 2nd target as a .dylib file.

John


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >What are some reasons why my App is not loading the NIB? (From: John Draper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.