• 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: is there a trick to know that a property of EO did change?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is there a trick to know that a property of EO did change?


  • Subject: Re: is there a trick to know that a property of EO did change?
  • From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
  • Date: Sun, 24 May 2020 22:39:16 -0400

Hi OC,

Could you override the setter of that property?

If it was “firstName” could you create “setFirstName()” which calls super and
then does the additional logic you desire?
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  email@hidden <mailto:email@hidden>  t:  (301) 956-2319



> On May 24, 2020, at 8:40 PM, ocs--- via Webobjects-dev
> <email@hidden> wrote:
>
> Hi there,
>
> I'd need to get a notification whenever a property of my EO changes, be it
> directly through a setter, or through an inverse-relationship being
> maintained, or through an object of an M:N deleted, whatever way. Something
> like
>
> class MyEO extends ERXGenericRecord {
>  void propertyDidChange(String key) {
>    ... to be called just after any property of mine changes, with its key ...
>  }
> }
>
> Does EOF or WOnder provide something like that? Whatever I try, I can't find
> it. I could easily observe willChanges of course, but that's something rather
> different...
>
> Thanks,
> OC
>
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >is there a trick to know that a property of EO did change? (From: ocs--- via Webobjects-dev <email@hidden>)

  • Prev by Date: is there a trick to know that a property of EO did change?
  • Next by Date: Re: is there a trick to know that a property of EO did change?
  • Previous by thread: is there a trick to know that a property of EO did change?
  • Next by thread: Re: is there a trick to know that a property of EO did change?
  • Index(es):
    • Date
    • Thread