• 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: What are some reasons why my App is not loading the NIB?
[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?


  • Subject: Re: What are some reasons why my App is not loading the NIB?
  • From: Justin Anderson <email@hidden>
  • Date: Fri, 12 Aug 2005 11:11:17 -0400

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

  • Prev by Date: Robust audio playback using NSSound...
  • Next by Date: Re: Core Data and multiple NIBs: how to share the managedObjectContext?
  • Previous by thread: What are some reasons why my App is not loading the NIB?
  • Next by thread: grouping items in toolbar
  • Index(es):
    • Date
    • Thread