On 06.01.2008, at 15:53, Florijan Stamenkovic wrote:
I am trying to make an EOGenericRecord subclass that will automatically fire events when new values are set. It is imperative that the event firing is absolute, nothing can be allowed to slip by, if a property changes in any way, an event has to be fired.
Hmm. Do you want to log the change in the EO or the change in the database? Because if you log changes to the EO, you might end up with logged stuff that was never saved and therfor does not exist outside the scope of where the change happened (and was reverted).
What I did for logging changes to EOs was checkin in "willUpdate" (using Wonder) by getting the changes from the snapshot. I also have some code to check whether relationships change but that is not really thought out completely.
cug -- http://www.event-s.net _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]