• 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: Event firing from changing EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Event firing from changing EOs


  • Subject: Re: Event firing from changing EOs
  • From: Guido Neitzer <email@hidden>
  • Date: Sun, 6 Jan 2008 16:03:06 -0700

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Event firing from changing EOs
      • From: Florijan Stamenkovic <email@hidden>
References: 
 >Event firing from changing EOs (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: RE: Large Array Clogging
  • Next by Date: Re: Can't retrieve cookies
  • Previous by thread: Event firing from changing EOs
  • Next by thread: Re: Event firing from changing EOs
  • Index(es):
    • Date
    • Thread