Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
local instances, child contexts, related EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local instances, child contexts, related EOs



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


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.