add applied to 2 related models simultaneously
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