• 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: EO lastModifiedTS @ validateForUpdate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO lastModifiedTS @ validateForUpdate?


  • Subject: Re: EO lastModifiedTS @ validateForUpdate?
  • From: "Les Vogel" <email@hidden>
  • Date: Thu, 29 Nov 2007 17:58:50 -1000

Perfect.  Thanks.

On 11/29/07, David LeBer <email@hidden> wrote:

On 29-Nov-07, at 9:01 PM, Chuck Hill wrote:

>
> On Nov 29, 2007, at 5:53 PM, Les Vogel wrote:
>
>> I'd like to keep a last update timestamp on my entities.  Would
>> validateForSave | validateForUpdate be a good time to modify an
>> attribute?
>
>
> Define good.  :-)  That violates an EOF commandment.  You risk
> confusing EOF.  If you are using Wonder, there is a facility in
> ERXEC to have it notify your object at a safe time to do this.


Use ERXGenericRecord from Wonder.

It has willUpdate, willInsert etc that are perfect for this sort of
thing.

They are called after saveChanges but before validation so it is safe
to make changes.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org





--
Les Vogel
808 870-0418
 _______________________________________________
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: 
 >EO lastModifiedTS @ validateForUpdate? (From: "Les Vogel" <email@hidden>)
 >Re: EO lastModifiedTS @ validateForUpdate? (From: Chuck Hill <email@hidden>)
 >Re: EO lastModifiedTS @ validateForUpdate? (From: David LeBer <email@hidden>)

  • Prev by Date: Re: EO lastModifiedTS @ validateForUpdate?
  • Next by Date: Re: EO lastModifiedTS @ validateForUpdate?
  • Previous by thread: Re: EO lastModifiedTS @ validateForUpdate?
  • Next by thread: Re: EO lastModifiedTS @ validateForUpdate?
  • Index(es):
    • Date
    • Thread