[OGo-Developer] how to call -flushDataCache automatically?
elim
developer@opengroupware.org
Thu, 26 Apr 2007 13:16:47 -0600
I've an EO class that implements data caching for some converted data from an attribute:
- (NSDictionary *)propertiesFromXML {
if(!_propertyFromXML) {
_propertyFromXML = [[self dictionaryFromXML: [self propertyXML]] retain];
}
return _propertyFromXML;
}
where propertyXML is an attribute of the EO entity corresponding to a database
table column.
When some changes committed via an eo of such class,
I'm looking for a solution to trigger
- (void)flushDataCache {
[_propertyFromXML release];
_propertyFromXML = nil;
}
automatically for all eo's with the same globalID, exist in the same app as well as other apps.
I've a typical change notification framework working. But it cannot take care of the auto synch
of derived data from eo attributes.
Thanks a lot,
YL
________________________________________________________________
Sent via the WebMail system at mail.pdtnetworks.net