OYeh ! can't get Cel popup to see anything


#1

Rebuilt EmployeeView over and over … binding seems right at least according to the book.
Still no Popups in the Department column… says. “No Value” I say why???

help… !!!
Thanks.
Ian

ps. Sorry for all the posts but I’m mostly dumb!!!


#2

Seems like Neither :

[code]- (void)addEmployeesObject:(Employee *)value;

  • (void)removeEmployeesObject:(Employee *)value;
    [/code]

From Departments are being triggered by

also there is a link indicated in the download example of chapter 30…
for: “MyDocument.xcdatamodel” in the Relationships viewer Graph thingy…
connecting attributes:employee ---------> attributes:Department
That I don’t see in mine although the setting seem the same…

Help!! I’ve rebuilt this 10 times and it still refuses to populate the popUp
in the TableView.

thanks.
Ian

ps. would anyone be willing to Look at my project files to help Please… I’m sick of looking at this chapter !!!


#3

When I run the example code… It works fine for the first employee entry but the second spits out this…

2010-07-20 10:47:41.380 Departments[293:a0f] HIToolbox: ignoring exception 'Unacceptable type of value for to-one relationship: property = "department"; desired type = Department; given type = Employee; value = <Employee: 0x2478d0> (entity: Employee; id: 0x246730 <x-coredata:///Employee/tE2856ABB-4F2A-4A98-BCB8-957B88DE47194> ; data: { department = nil; deptName = nil; employees = ( ); firstName = jazz; lastName = fm; manager = nil; }).' that raised inside Carbon event dispatch ( 0 CoreFoundation 0x96c53bba __raiseError + 410 1 libobjc.A.dylib 0x93526509 objc_exception_throw + 56 2 CoreData 0x95e58278 _PFManagedObject_coerceValueForKeyWithDescription + 1768 3 CoreData 0x95e6ee8f _sharedIMPL_setvfk_core + 159 4 CoreData 0x95e57a56 -[NSManagedObject(_PFDynamicAccessorsAndPropertySupport) _setGenericValue:forKey:withIndex:flags:] + 54 5 CoreData 0x95e6ed50 -[NSManagedObject setValue:forKey:] + 288 6 Foundation 0x91402acf -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 445 7 AppKit 0x98fced1e -[NSArrayController _setMultipleValue:forKeyPath:atIndex:] + 327 8 AppKit 0x98e6b19d -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error:] + 776 9 AppKit 0x98fdfe76 -[NSBinder setValue:forBinding:atIndex:error:] + 587 10 AppKit 0x98e6acc9 -[_NSValueBinderPlugin applyObjectValue:forBinding:operation:needToRunAlert:error:] + 371 11 AppKit 0x9938764d -[NSValueBinder _applyObjectValue:forBinding:canRecoverFromErrors:handleErrors:typeOfAlert:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert:] + 117 12 AppKit 0x993874a3 -[NSValueBinder applyDisplayedValueHandleErrors:typeOfAlert:canRecoverFromErrors:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert:] + 593 13 AppKit 0x98e6a5d3 -[NSValueBinder performAction:] + 303 14 AppKit 0x98e6a382 -[_NSBindingAdaptor _objectDidTriggerAction:bindingAdaptor:] + 153 15 AppKit 0x98e6a2bf -[_NSBindingAdaptor objectDidTriggerAction:] + 243 16 AppKit 0x98e6e66d -[NSControl sendAction:to:] + 64 17 AppKit 0x98e6a146 -[NSCell _sendActionFrom:] + 169 18 AppKit 0x98d8ef1e -[NSApplication sendAction:to:from:] + 112 19 AppKit 0x98d8edd1 -[NSMenuItem _corePerformAction] + 435 20 AppKit 0x98d8eac2 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 174 21 AppKit 0x98d8e9ae -[NSMenu performActionForItemAtIndex:] + 65 22 AppKit 0x98d8e961 -[NSMenu _internalPerformActionForItemAtIndex:] + 50 23 AppKit 0x98d8e8c7 -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 97 24 AppKit 0x98d8e80b -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 336 25 AppKit 0x98d82f49 NSSLMMenuEventHandler + 404 26 HIToolbox 0x9664af2f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1567 27 HIToolbox 0x9664a1f6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411 28 HIToolbox 0x9666c9bb SendEventToEventTarget + 52 29 HIToolbox 0x96698fa7 _ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 448 30 HIToolbox 0x966bdd1c SendMenuCommandWithContextAndModifiers + 66 31 HIToolbox 0x966bdcd1 SendMenuItemSelectedEvent + 121 32 HIToolbox 0x966bdbda _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 152 33 HIToolbox 0x9683f342 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttmS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1851 34 HIToolbox 0x9683f699 _HandlePopUpMenuSelection7 + 678 35 AppKit 0x99018e97 _NSSLMPopUpCarbonMenu3 + 3938 36 AppKit 0x9920e36a -[NSPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 590 37 AppKit 0x98ecbb0f -[NSTableView _tryCellBasedMouseDown:atRow:column:withView:] + 1528 38 AppKit 0x98ec88ab -[NSTableView mouseDown:] + 3992 39 AppKit 0x98e65e9c -[NSWindow sendEvent:] + 5549 40 AppKit 0x98d7eaff -[NSApplication sendEvent:] + 6431 41 AppKit 0x98d125bb -[NSApplication run] + 917 42 AppKit 0x98d0a5ed NSApplicationMain + 574 43 Departments 0x00002358 main + 30 44 Departments 0x00001bdd start + 53 )

could this be tied to my problem above???

thanks
Ian


#4

Dude…

If you are not seeing the popup then maybe check that the data is being set.
in DepartmentView.xib

ie. Make sure Depts array controller is set to:
Entity mode. and Pulling from the Department entity…

Which did work! Finally !!! also updated to 3.2.3 which may (shrug) have helped psychologically…

Yeah finally done that chapter… big sigh!!!

hope this helps someone…
Ian