• 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: processRecentChanges makes me sad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: processRecentChanges makes me sad


  • Subject: Re: processRecentChanges makes me sad
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 05 Dec 2013 18:01:11 -0700

On Dec 4, 2013, at 2:18 AM, Hugi Thordarson <email@hidden> wrote:

> Hi all.
>
> I’ve been attempting to automate the setting of some common attributes in my EOs, like creationDate, createdByUser etc. etc. Usually one might populate attributes like that in awakeFromInsertion, but that's boilerplate I’d rather not add to my EO classes. So instead, I’ve taken a different route.

> Anyone have any happy litle ideas on how to tackle the problem?

Y u reinvent wonder? See ERXEntityClassDescription:

ERXDefaultValues = {

creationDate = “@now”;

createdByUser = “@threadStorage.actor”;

}

:-)
 _______________________________________________
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


  • Prev by Date: Re: processRecentChanges makes me sad
  • Next by Date: Re: Inheritance and prefetching
  • Previous by thread: Re: processRecentChanges makes me sad
  • Next by thread: Job Opportunity: WebObjects developer on Gold Coast, Australia
  • Index(es):
    • Date
    • Thread