Re: Core Data: Dual-Inverse Relation Possible in Modeler?
Re: Core Data: Dual-Inverse Relation Possible in Modeler?
- Subject: Re: Core Data: Dual-Inverse Relation Possible in Modeler?
- From: email@hidden
- Date: Fri, 21 Oct 2005 13:22:48 -0700
On 17/10/21, at 11:28, Scott Ellsworth wrote:
On Oct 20, 2005, at 11:01 PM, email@hidden wrote:
At 19:17, mmalcolm crawford wrote:
On Oct 20, 2005, at 7:10 PM, email@hidden wrote:
As an example, there are a bunch of fighters, they have a to-
many relation called "Enemies,"
You actually have two relationships here, believe it or not, for
each person. There is an 'hatesMe' relationship and its inverse
'iHate' relationship. This covers the case where Batman hates
Nightman, and Nightman hates TriangleMan, but TriangleMan does not
hate Batman.
Scott
Right, but then Nightman also has his 'hatesMe' relation as not
containing what is in 'iHate'.
In this scenario:
Batman hates Nightman > Batman.iHate containes Nightman >
Nightman.hatesMe contains Batman, but Nightman.iHate does not contain
batman.
What I want:
Batman hates Nightman > Batman.iHate contains Nightman >
Nightman.iHate also then contains Batman automatically, they MUST
reciprocate in the same fashion.
Nobody cares if they 'hatesMe' it just goes straight to 'iHate'
Well, I've already implemented this in code, I''l post it in my next
message in case anyone wants this behavior, they can find it in
the archives instead of posting the same question.
Thanks everybody.
_______________________________________________
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