• 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
How to debug a nib loading error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to debug a nib loading error?


  • Subject: How to debug a nib loading error?
  • From: Steve Cronin <email@hidden>
  • Date: Fri, 7 Mar 2008 00:36:23 -0600

Folks;

Tiger 10.4.11 -- XC 2.4.1
I'm baffled by an IB error.

Reasonable development has been on-going.
Pretty stringent Build Rules and no errors or warnings.
I decide to do a clean build, torch the app's prefs file and the CoreData store.
I want to focus on the initial installation phase of the app...


To my great surprise I cannot now get the app to launch successfully. It ran fine 15 minutes beforehand...

Regardless of whether I 'Run' or 'Debug' I get the exact same result:

I get all the way through the appDelegate's -awakeFromNib and the pref window opens (as I expect on first launch) but the debugger kicks in with the following:

#0 0x90a594c7 in objc_msgSend
#1 0xbffff7b8 in ??
#2 0x932849d8 in loadNib
#3 0x932843d9 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:]
#4 0x9328403a in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:]
#5 0x93283f7c in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#6 0x93283cc3 in NSApplicationMain
#7 0x00405ffc in main at main.m:18


In the Console I see:
....Normal log messages that I generate and expect (including the 'end-of-awake-from-nib' stamp)
Program received signal: "EXC_BAD_ACCESS".


I have the [NSException raise] as a Global breakpoint but it doesn't fire.

Using the po command I can tell that MainMenu is the nib involved; the prefs window is in a separate nib...

How do I track this down?
Steve

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to debug a nib loading error?
      • From: "Kyle Sluder" <email@hidden>
    • Re: How to debug a nib loading error?
      • From: Jonathan Hess <email@hidden>
  • Prev by Date: Re: Grabbing current Safari webpage url
  • Next by Date: Re: GetMonitorFromWindow
  • Previous by thread: Re: Localized Apple Help (HTML) doesn't load
  • Next by thread: Re: How to debug a nib loading error?
  • Index(es):
    • Date
    • Thread