• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting eo changes when they happen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting eo changes when they happen


  • Subject: Re: Detecting eo changes when they happen
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Wed, 11 Oct 2006 00:09:04 +0200

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting eo changes when they happen
      • From: Sacha Michel Mallais <email@hidden>
    • Re: Detecting eo changes when they happen
      • From: Chuck Hill <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>)

  • Prev by Date: Re: Dealing with URLs length
  • Next by Date: Re: Detecting eo changes when they happen
  • Previous by thread: Re: Detecting eo changes when they happen
  • Next by thread: Re: Detecting eo changes when they happen
  • Index(es):
    • Date
    • Thread