This is really ironicI am encountering my first serious difficulty with the Hillegass book at chapter 11, the first application that involves no manual coding! 😱
As you may recall, this is the CarLot application, a first exercise in CoreData design using bindings.
I (think I) followed the instructions closely and get no compilation errors (no congratulations due as I didn't write a single line of code).
However, the document window never even appears and I get the following runtime error:
Worse still, when I select the [File > New] menu command, hell breaks loose:
Any idea what could be wrong? I checked my model key paths in the Interface Builder, and they seem correct to me.
I also tried compiling both 10.5 and 10.6 targetsno difference whatsoever.
Thank you very much.
As you may recall, this is the CarLot application, a first exercise in CoreData design using bindings.
I (think I) followed the instructions closely and get no compilation errors (no congratulations due as I didn't write a single line of code).
However, the document window never even appears and I get the following runtime error:
Code:
2010-06-22 20:58:57.528 CarLot[10574:a0f] [<NSArrayController 0x100680b70> valueForUndefinedKey:]: this class is not key value coding-compliant for the key makeModel.
Worse still, when I select the [File > New] menu command, hell breaks loose:
Code:
2010-06-22 20:59:22.372 CarLot[10574:a0f] HIToolbox: ignoring exception '[<NSArrayController 0x100655b50> valueForUndefinedKey:]: this class is not key value coding-compliant for the key makeModel.' that raised inside Carbon event dispatch
(
0 CoreFoundation 0x00007fff88cbfcc4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff887350f3 objc_exception_throw + 45
2 CoreFoundation 0x00007fff88d17999 -[NSException raise] + 9
3 Foundation 0x00007fff81e36172 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 245
4 Foundation 0x00007fff81d653d1 -[NSObject(NSKeyValueCoding) valueForKey:] + 420
5 Foundation 0x00007fff81d68d14 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 226
6 AppKit 0x00007fff830f7fb2 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
7 AppKit 0x00007fff83419dd1 -[NSDisplayPatternBinder _adjustObject:mode:triggerRedisplay:] + 240
8 AppKit 0x00007fff83418f19 -[NSDisplayPatternBinder _observeValueForKeyPath:ofObject:context:] + 121
9 AppKit 0x00007fff830eae7b -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 557
10 AppKit 0x00007fff830c7992 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1172
11 AppKit 0x00007fff830c5cd9 loadNib + 226
12 AppKit 0x00007fff830c51e9 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
13 AppKit 0x00007fff831437c9 -[NSWindowController loadWindow] + 233
14 AppKit 0x00007fff830ea199 -[NSWindowController window] + 82
15 AppKit 0x00007fff832fe399 -[NSWindowController showWindow:] + 47
16 AppKit 0x00007fff832cfe14 -[NSDocument showWindows] + 98
17 AppKit 0x00007fff832ce673 -[NSDocumentController openUntitledDocumentAndDisplay:error:] + 340
18 AppKit 0x00007fff832ce4ee -[NSDocumentController newDocument:] + 33
19 AppKit 0x00007fff83259152 -[NSApplication sendAction:to:from:] + 95
20 AppKit 0x00007fff8327d6be -[NSMenuItem _corePerformAction] + 365
21 AppKit 0x00007fff8327d428 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 121
22 AppKit 0x00007fff8350141d -[NSMenu _internalPerformActionForItemAtIndex:] + 35
23 AppKit 0x00007fff833b3217 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 136
24 AppKit 0x00007fff8325fc14 NSSLMMenuEventHandler + 321
25 HIToolbox 0x00007fff88d8c997 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1002
26 HIToolbox 0x00007fff88d8bee6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 395
27 HIToolbox 0x00007fff88da9ba9 SendEventToEventTarget + 45
28 HIToolbox 0x00007fff88dd8cd1 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 387
29 HIToolbox 0x00007fff88e05b06 SendMenuCommandWithContextAndModifiers + 56
30 HIToolbox 0x00007fff88e05abe SendMenuItemSelectedEvent + 101
31 HIToolbox 0x00007fff88e059be _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 150
32 HIToolbox 0x00007fff88de6cb3 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 467
33 HIToolbox 0x00007fff88de6408 _HandleMenuSelection2 + 453
34 AppKit 0x00007fff83130c39 _NSHandleCarbonMenuEvent + 236
35 AppKit 0x00007fff8310474e _DPSNextEvent + 1908
36 AppKit 0x00007fff83103bed -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
37 AppKit 0x00007fff830c98d3 -[NSApplication run] + 395
38 AppKit 0x00007fff830c25f8 NSApplicationMain + 364
39 CarLot 0x0000000100000e0c main + 33
40 CarLot 0x0000000100000d14 start + 52
)
Any idea what could be wrong? I checked my model key paths in the Interface Builder, and they seem correct to me.
I also tried compiling both 10.5 and 10.6 targetsno difference whatsoever.
Thank you very much.