Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InsertObject



Moin list,

Could someone answer the following question? :

I have two objects A and B, each extending EOGenericRecord.
Object A has a field of type B.
Now, when I create a new Object A which embeds a new object B, before performing an EditingContext.saveChanges
I must insert each object separately in my editingContext:
myContext.insertObject(B);
myContext.insertObject(A);
myContext.saveChanges();
.... which is rapidly over-complicated when saving complex object-graphs


Now, in order to perform the saveChanges in a more elegant way, can someone tell me if
there is a method to override, method called by EditingContext.saveChanges, in which I could
in each EOGenericRecord do the insertObject work ?


Thanks

Fj


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

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 © 2007 Apple Inc. All rights reserved.