Re: Synchronizing data displayed by two instances of my app
Re: Synchronizing data displayed by two instances of my app
- Subject: Re: Synchronizing data displayed by two instances of my app
- From: Denis Stanton <email@hidden>
- Date: Mon, 5 Apr 2004 16:14:43 +1200
On 03/04/2004, at 8:33 AM, Marius Strumyla wrote:
Denis, did you try
EOFetchSpecification.setRefreshesRefetchedObjects(true)
as Arturo suggested? This ensures that fetch specification updates the
already fetched objects. That's is all you need.
Thank you Marius
I WAS sure I tried setRefreshesRefetchedObjects to keep the data
fetched by two instances in synch without success, but I just tried
again so that I could give definitive response to your (and Arturo's)
suggestion. It does work.
Putting
fetchSpec.setRefreshesRefecthedObjects(true);
immediately before
return new
NSMutableArray(editingContext.objectsWithFetchSpecification(fetchSpec);
seems to do exactly what I wanted. I'm not sure yet whether the
performance hit will be noticeable.
I understand that it is important not to use
setRefreshesRefecthedObjects in between editing and saving changes.
Denis
_______________________________________________
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.