Notification or handler after an EO got snapshot update
Notification or handler after an EO got snapshot update
- Subject: Notification or handler after an EO got snapshot update
- From: Samuel Pelletier <email@hidden>
- Date: Fri, 21 Mar 2014 09:18:46 -0400
Hi,
I have a class where I added an ivar to keep a cache of some values extracted from toMany relationships. I want to clear this cache if the toMany is updated from another editingContext but I do not find a proper way to catch this event.
For simple attributes, creating a "public void_setAtributeName(ValueClass value)" method works but this is not called for toMany relationships. The EOEnterpriseObject method "void updateFromSnapshot(NSDictionary<String,Object> snapshot)" has a promising name but is not called.
Is there a way to trap this event, either with a notification or a method overrides? Something like "didUpdateFromSnapshot" would be wonderful.
Samuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden