Core Data: Dual-Inverse Relation Possible in Modeler?
Core Data: Dual-Inverse Relation Possible in Modeler?
- Subject: Core Data: Dual-Inverse Relation Possible in Modeler?
- From: email@hidden
- Date: Thu, 20 Oct 2005 19:10:05 -0700
Hi I'm working on a model that has a to-many relation to itself and
want a behavior
that when its added, the other side also adds the adder to its to-
many relation by the same name.
As an example, there are a bunch of fighters, they have a to-many
relation called "Enemies,"
so when say Nightman adds Batman as one of his enemies, Batman also
adds Nightman as one
of his enemies, and when either Batman or Nightman takes the other
off the list, then the other
also reciprocates. Is this possible to set in the modeler, or would I
need to just add some custom
code in my Managed object? I don't want a relation like EnemiesA and
EnemiesB set the inverse
as each other because then it becomes more complicated to check
enemies(A/B) then just enemies...
Just checking before I write some code and then later regret... maybe
this is a bad design?
Thanks
_______________________________________________
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