Re: Help with error while loading nib
Re: Help with error while loading nib
- Subject: Re: Help with error while loading nib
- From: Don Rainwater <email@hidden>
- Date: Wed, 20 Jul 2005 11:29:18 -0400
Btw, this program still builds and runs fine on 10.3.9.
On Jul 19, 2005, at 5:16 PM, Don Rainwater wrote:
I have a billing application that I wrote a couple of years ago,
and I'm trying to get running again on 10.4. When I first opened
the project in Xcode 2.1, I received the warning (not unexpected)
about it being saved in an older version of Xcode and told it to
upgrade a copy. The project builds without any trouble, but when I
try to run it, I get the following in the Run Log:
An uncaught exception was raised
Cannot create number from object () of class NSCFArray
*** Uncaught exception: <NSInternalInconsistencyException> Cannot
create number from object () of class NSCFArray
App has exited due to signal 5 (SIGTRAP).
The run log also contained some NSLog() output that I had inserted
in [MyController init], but none of my other NSLog() output from
other methods, so I set a breakpoint at the end of init and ran the
app with the debugger. From the breakpoint, I started stepping
forward and found myself looping through loadNib. After several
iterations, I ended up with this list below under "Thread-1" in the
Debugger window.
Any advice on how I can figure out where the problem is?
#0 0x92897e80 in _NSRaiseError
#1 0x92897bbc in +[NSException raise:format:]
#2 0x93ae1bf0 in _NSNumberFromValue
#3 0x93881110 in -[_NSTextFieldPlugin showValue:inObject:]
#4 0x93881050 in -[_NSPlaceholderTextFieldPlugin
showValue:inObject:]
#5 0x938563f8 in -[NSValueBinder showValue:inObject:]
#6 0x9385559c in -[NSValueBinder
_adjustObject:mode:observedController:observedKeyPath:context:editable
State:adjustState:]
#7 0x938551a8 in -[NSValueBinder
_observeValueForKeyPath:ofObject:context:]
#8 0x93af7fa8 in -[NSTextValueBinder
_observeValueForKeyPath:ofObject:context:]
#9 0x9384d888 in -[NSObject(NSKeyValueBindingCreation)
bind:toObject:withKeyPath:options:]
#10 0x93645f0c in -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:]
#11 0x93632324 in loadNib
#12 0x93631d7c in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:]
#13 0x9368905c in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:]
#14 0x93718e10 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#15 0x93718bb0 in NSApplicationMain
#16 0x00012fa4 in main at main.m:13
--
Don Rainwater
_______________________________________________
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