• 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
local instances, child contexts, related EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local instances, child contexts, related EOs


  • Subject: local instances, child contexts, related EOs
  • From: Tom Woteki <email@hidden>
  • Date: Sun, 21 Dec 2008 21:28:26 -0500

Hi All:

I've looked in various online tutorials etc but I haven't found the answer to this question: when I create a local instance of an EO in a child context, how to do I conveniently cause the related EOs to be brought along into the child EC? I'm assuming there must be a method or standard way of doing this but I can't see it.

I have tried this:

	EOEditingContext ec, localEC;

	myLocalEO = ec.localInstanceOfObject(localEC, myEO);
	myLocalEO.updateFromSnapshot(myLocalEO.snapshot());

but this only results in faults for the related objects.

What is the practice for obtaining local copies of an EO and all its related EOs? I want to do this in order to edit the locals in the child EC.

Thanks
Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: local instances, child contexts, related EOs
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: [OT] New WO Years Resolutions.
  • Next by Date: Re: local instances, child contexts, related EOs
  • Previous by thread: Re: Adding a xml config file to the classpath
  • Next by thread: Re: local instances, child contexts, related EOs
  • Index(es):
    • Date
    • Thread