Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting eo changes when they happen



Hi Chuck,


If nothing like that exists, I am thinking of implementing it through a notification posting EOGenericRecord subclass. Any comments or tips about this?

There is a discussion and implementation of what you want in Practical WebObjects starting on page 67. You really need the help of the EC.

If I understand it correctly, your editing context subclass posts notifications once objects are saved to the persistent data store. I need notifications being fired on every edit of any EO in my app, not in the persistent store, but in the editing context. I need that to fire Swing events, but didn't point that out in my original post. And, I need them to fire *after* object(s) have been edited.


How about overriding all takeValue...() methods? Would that be inadvisable?

One more question: EOs are not automatically removed from to-many relationships after being deleted, even when their delete rule is set to nullify. Is this another client side EOClassDescription bug, or a standard behavior?

That is standard behavior. Delete rules are processed as part of the preparation work done in saveChanges(). You can call ec.processRecentChanges() to force this to happen earllier.

Good to know. Does that make sense? Shouldn't the object store reflect the latest changes to EOs managed in that store? Maybe I am missing something though...


Thanks,
Flor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Detecting eo changes when they happen (From: Florijan Stamenkovic <email@hidden>)
 >Re: Detecting eo changes when they happen (From: Chuck Hill <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.