Re: Core Data relationships
Re: Core Data relationships
- Subject: Re: Core Data relationships
- From: J Tichenor <email@hidden>
- Date: Fri, 24 Jun 2005 08:12:57 -0700
On 23-Jun-05, at 10:27 PM, mmalcolm crawford wrote:
On Jun 23, 2005, at 9:59 PM, J Tichenor wrote:
FYI -- this is what I wrote that doesn't work: totalCostOfUnits =
[self valueForKeyPath:@"email@hiddenotal"];
Needless to say I get an error. I don't think the effectUnits part
is right, although it is the name of the relationship? If this is
right, how does the program know to run all the objects in the
relationship?
This should be fine.
As an aside -- does the @sum somehow automatically sum up all the
unitTotals in the effectUnits? If so, that's pretty neat...
Here is the error: "NSRunLoop ignoring exception
'[<EffectUnitManagedObject 0x31f320> valueForUndefinedKey:]: this
class is not key value coding-compliant for the key
totalCostOfUnits.' that raised during posting of delayed perform
with target 3a4890 and selector 'invokeWithTarget:"
Have you implemented an accessor method called 'totalCostOfUnits'?
Yes, in exactly the same manner as my unitCost accessor method in
EffectUnit. I figured if I was on the right track it should be right.
The weird thing in the message is the error states that
EffectUnitManagedObject has the valueForUndefintedKey, but the
totalCostOfUnits is the accessor in BudgetManagedObject. I've looked
through IB for bindings that are looking for the totalCostOfUnits in
EffectUnitManagedObject but can't find anything.
J
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40lehopictures.com
This email sent to email@hidden
_______________________________________________
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