• 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
Re: Nested Editing Context Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested Editing Context Question


  • Subject: Re: Nested Editing Context Question
  • From: David Teran <email@hidden>
  • Date: Tue, 7 Sep 2004 11:11:18 +0200

Hm, seems to be pretty easy to check this out, dont hesitate, eos are not real, you can clone them as often as you want :-)

EOEditingContext ec1 = new EOEditingContext();
EOEditingContext ec2 = new EOEditingContext(ec1);

MyEO eo1 = new MyEO();
ec1.insertObject(eo1);
MyEO eo2 = new MyEO();
ec2.insertObject(eo2);
eo2.setSomething("a value");
eo2.setARelationship(eo1);
eo1.setABackRelationship(eo2);

ec1.saveChanges();

and now check the state from your eos. This code is not tested, might fail to compile.

regards David

Am 07.09.2004 um 07:58 schrieb Hanks Gerald:

What happens to the unsaved changes made to a nested editing context
when its parent's saveChanges method is called.  Is it a proper thing
to do to call saveChanges on the parent EC while the user is still
making changes to the nested EC?  Do the changes in the parent EC
automatically flow down to the nested EC?

--gerald

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Nested Editing Context Question (From: Hanks Gerald <email@hidden>)

  • Prev by Date: Nested Editing Context Question
  • Next by Date: Re: Manualy define WOPopUpButton
  • Previous by thread: Nested Editing Context Question
  • Next by thread: (followup) Many-to-Many relationship remove... failed
  • Index(es):
    • Date
    • Thread