• 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: Sacha Michel Mallais <email@hidden>
  • Date: Tue, 10 Oct 2006 17:28:57 -0700

On Oct 10, 2006, at 3:09 PM, Florijan Stamenkovic wrote:

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

That's one way. You could check that the key you were getting was actually an attribute of the EO too if you wanted. Also keep in mind that EOF uses take*Stored*Value...() when it initializes your objects (and at some other times too -- see next), so you might want to do something with that too.


Another way to do it would be to change your eogenerator (I assume you're using it or something similar) template to generate code like this:

    public void setMyAttribute(Object value)
    {
        takeStoredValueForKey(value, "myAttribute");
        didChange("myAttribute", value);
    }

Of course, you'll need a common superclass that implements didChange however you like.


sacha


-- Sacha Michel Mallais Knowledge Broker Global Village Consulting Inc. http://www.global-village.net/ PGP Key ID: 7D757B65 AIM: smallais -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s++:++ a C++(++++)$ UB@+++(++++)$ P-(---) L+(-) E>++ W++(+++) N+ o? K? w(---) O M++ V-(--) PS+++ PE(-) Y+ PGP++ t+ 5+ X+ R+>+++ tv+ b+ DI+++ D++ G e++ h(+) r* y+(*) ------END GEEK CODE BLOCK------



_______________________________________________
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:
    • [SOLVED] Re: Detecting eo changes when they happen
      • From: Florijan Stamenkovic <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>)
 >Re: Detecting eo changes when they happen (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: MSSQLServer Unicode Support
  • Next by Date: Problem with Oracle adapter and update
  • Previous by thread: Re: Detecting eo changes when they happen
  • Next by thread: [SOLVED] Re: Detecting eo changes when they happen
  • Index(es):
    • Date
    • Thread