Perfect. Thanks. On 11/29/07, David LeBer <[EMAIL PROTECTED]> 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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
