• 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
add applied to 2 related models simultaneously
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add applied to 2 related models simultaneously


  • Subject: add applied to 2 related models simultaneously
  • From: "Bryan Zarnett" <email@hidden>
  • Date: Fri, 24 Feb 2006 15:20:47 -0500

I have an Entity "Person" and a related entity "Address". They have a 1 to 1
inverse relationship of each other. For each Person their should be 1
address and for each Address there should be 1 person. When I want to add a
new "Person" I also want to create the related address. I was hoping it was
as easy as making the relationship not optional and linking up the add
button but that did not seem to work.

I have a ControllerArray for a list of persons and an ObjectController for
the selection address information. The Controller Content of my Object
Controller is set to the selection of the array controller of Person with
the model key path being the relationship.

What are my next steps to set it up so that these two objects are in-sync
and I can do an add (or a retrieve) with the click of a button? Is there an
operation I need to overrride?

Thanks for any help.

Bryan
 _______________________________________________
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

  • Prev by Date: Re: AddressBook Problem
  • Next by Date: draw and ... draw, not drawing
  • Previous by thread: Re: using NSMutableDictionary in place of NSDictionary
  • Next by thread: draw and ... draw, not drawing
  • Index(es):
    • Date
    • Thread