• 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: Timestamps getting updated unexpectedly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timestamps getting updated unexpectedly


  • Subject: Re: Timestamps getting updated unexpectedly
  • From: Tarun Reddy <email@hidden>
  • Date: Thu, 27 Sep 2007 10:40:07 -0600


On Sep 27, 2007, at 10:26 AM, David LeBer wrote:


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>


Guess it is a good thing I included that code sniplet! Will fix that, too!


Thank you all,
Tarun


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:
40rallydev.com


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: 
 >Timestamps getting updated unexpectedly (From: Tarun Reddy <email@hidden>)
 >Re: Timestamps getting updated unexpectedly (From: Gary Teter <email@hidden>)
 >Re: Timestamps getting updated unexpectedly (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Timestamps getting updated unexpectedly
  • Next by Date: Re: D2W + custom EOEditingContext subclass [SOLVED]
  • Previous by thread: Re: Timestamps getting updated unexpectedly
  • Next by thread: WOLips Resources funkiness
  • Index(es):
    • Date
    • Thread