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: Fri, 2 Apr 2004 16:25:48 +1200
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.