Re: Timestamps getting updated unexpectedly
Re: Timestamps getting updated unexpectedly
- Subject: Re: Timestamps getting updated unexpectedly
- From: David LeBer <email@hidden>
- Date: Thu, 27 Sep 2007 12:26:27 -0400
On 27-Sep-07, at 11:56 AM, Gary Teter wrote:
Be sure to call super.awakeFromInsertion(ec) before doing anything
else in this method.
Yes, please do! <http://davidleber.net/?p=265>
On Sep 26, 2007, at 10:20 PM, Tarun Reddy wrote:
When a new idea is created I have the following method
public void awakeFromInsertion(EOEditingContext ec) {
setAvgRating(0.0);
setNumRatings(0);
setProposedStatus();
setSubmitDate(new NSTimestamp());
}
;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
_______________________________________________
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