• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data: Dual-Inverse Relation Possible in Modeler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Core Data: Dual-Inverse Relation Possible in Modeler?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Strings from NSTextView
  • Next by Date: Re: Xcode 2.1 & Subversion svn:// fix?
  • Previous by thread: Re: Strings from NSTextView
  • Next by thread: Re: Core Data: Dual-Inverse Relation Possible in Modeler?
  • Index(es):
    • Date
    • Thread