• 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
getting NSUnknownKeyException after editing NIB with IB 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting NSUnknownKeyException after editing NIB with IB 3.0


  • Subject: getting NSUnknownKeyException after editing NIB with IB 3.0
  • From: Gonzalo Castro <email@hidden>
  • Date: Mon, 5 Nov 2007 22:22:12 -0500

Hello,

I have a small core data application that ran fine in Tiger and initially ran OK in Leopard after rebuilding using Xcode 3.0. However, *after* editing its MainMenu.nib using IB 3.0 I get an NSUnknownKeyException exception during launch.

Something is amiss in loading the edited nib. Any ideas what the problem is?


The console log:


[Session started at 2007-11-05 21:48:19 -0500.]
2007-11-05 21:48:21.338 MyApp[5451:10b] An uncaught exception was raised
2007-11-05 21:48:21.342 MyApp[5451:10b] [< MyApp_AppDelegate 0x16bab0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key firstName.
2007-11-05 21:48:21.344 MyApp[5451:10b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[< MyApp_AppDelegate 0x16bab0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key firstName.'
2007-11-05 21:48:21.345 MyApp[5451:10b] Stack: (
    2418859840,
    2484778668,
    2418859024,
    2456235960,
    2455296172,
    2455459496,
    2520835052,
    2455459444,
    2520604188,
    2520603096,
    2520805960,
    2520805092,
    2520811096,
    2520570804,
    2518765440,
    2518730332,
    2518728704,
    2518727644,
    2518726852,
    11032,
    10484,
    9720
)


The stack trace:


#0 0x902cdee8 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___
#1 0x941ab6ac in objc_exception_throw
#2 0x902cdc10 in -[NSException raise]
#3 0x92672fb8 in -[NSObject(NSKeyValueCoding) valueForUndefinedKey:]
#4 0x9258d8ac in -[NSObject(NSKeyValueCoding) valueForKey:]
#5 0x925b56a8 in -[NSObject(NSKeyValueCoding) valueForKeyPath:]
#6 0x9640e3ec in -[NSArrayController _singleValueForKeyPath:]
#7 0x925b5674 in -[NSObject(NSKeyValueCoding) valueForKeyPath:]
#8 0x963d5e1c in -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:]
#9 0x963d59d8 in -[NSBinder valueForBinding:resolveMarkersToPlaceholders:]
#10 0x96407248 in -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:]
#11 0x96406ee4 in -[NSValueBinder _observeValueForKeyPath:ofObject:context:]
#12 0x96408658 in -[NSTextValueBinder _observeValueForKeyPath:ofObject:context:]
#13 0x963cdbb4 in -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:]
#14 0x96214f80 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
#15 0x9620c65c in loadNib
#16 0x9620c000 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:]
#17 0x9620bbdc in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#18 0x9620b8c4 in NSApplicationMain
#19 0x00002b18 in main at main.m:13


I don't know why or where my app delegate is being asked for a value for the key "firstName".


Thanks,
Gonzalo


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: getting NSUnknownKeyException after editing NIB with IB 3.0
      • From: Jon Hess <email@hidden>
  • Prev by Date: Re: Adding frameworks to a project - adding corresponding search paths to find the headers. Necessary?
  • Next by Date: Re: Adding frameworks to a project - adding corresponding search paths to find the headers. Necessary?
  • Previous by thread: Re: Adding frameworks to a project - adding corresponding search paths to find the headers. Necessary?
  • Next by thread: Re: getting NSUnknownKeyException after editing NIB with IB 3.0
  • Index(es):
    • Date
    • Thread