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: Chuck Hill <email@hidden>
- Date: Thu, 1 Apr 2004 20:29:28 -0800
That is an offset from ec (session) creation. It won't work the way
you are using it. Try marking the fetch spec as "refreshes refetched
objects". Also note the to-many problem discussed on wodev.
Chuck
On Apr 1, 2004, at 8:25 PM, Denis Stanton wrote:
Hi Chuck, Arturo
Thanks guys. EOEditingContext.setFetchTimestampLag() seems like it
should be exactly what I need.
Except that it is not working for me. Maybe I'm missing the point.
The documentation refers to initializing a new editingContext. I am
only ever using the default editing context.
I have something like this:
private EOEditingContext editingContext;
private EOFetchSpecification fetchSpec;
......
public NSMutableArray fetchHires() {
Session session = (Session)session();
< define fetchspec>
editingContext = session.defaultEditingContext();
editingContext.setDefaultFetchTimestampLag(10);
return new
NSMutableArray(editingContext.objectsWithFetchSpecification(fetchSpec))
;
}
I get two instances running and make a change to the hire data with
one. Then I click 'update' on the other screen, causing the above
method to be called, but the resulting display does not reflect the
change so it must be using old data.
Denis
On 02/04/2004, at 2:29 PM, Arturo Pirez wrote:
Finally, the thing I was thinking of when I started to compose this:
EOEditingContext.setFetchTimestamp
Denis Stanton
email@hidden
Home: +64 9 533 0391
mobile: +64 21 1433622
_______________________________________________
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.