Re: Ok, so refetch() is deprecated in EOEditingContext...
Re: Ok, so refetch() is deprecated in EOEditingContext...
- Subject: Re: Ok, so refetch() is deprecated in EOEditingContext...
- From: Art Isbell <email@hidden>
- Date: Thu, 6 Feb 2003 11:53:52 -1000
On Thursday, February 6, 2003, at 11:32 AM, Kaj Hejer wrote:
One thing (I think) I should know :) but don't know is the difference
between ec.refaultObject(eo) and
ec.invalidateObjectsWithGlobalIDs(gids).
Does both this methods leads to the same result?
I don't think so. I think refaultObject() refaults only the object in
the editing context to which this message is sent whereas
invalidateObjectsWithGlobalIDs() refaults all objects with the same
global ID in all editing contexts plus the snapshot itself. I.e.,
invalidateObjectsWithGlobalIDs() has a much more radical affect and
should not be used unless one knows that refaulting the object in other
editing contexts won't be a problem. I avoid invalidating objects
whenever possible (which is almost always).
Art
http://homepage.mac.com/aisbell/
_______________________________________________
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.