Re: Default value for Date Atttribute in Core Data application
Re: Default value for Date Atttribute in Core Data application
- Subject: Re: Default value for Date Atttribute in Core Data application
- From: Robert Cerny <email@hidden>
- Date: Thu, 10 Aug 2006 15:56:17 +0200
Lee,
I believe that you need to implement awakeFromInsert
HTH
Robert
On 10.8.2006, at 15:18, Lee Gillen wrote:
Hello,
I have a Core Data application that has a date attribute for one of
the entities. I'd like to set the default value for this attribute to
be the current date and time that the data was created. I found that I
can use a default value of 'now' or 'today' and it will populate the
attribute with the date the data was created, but not the time.
Is there a default value I can use that provides both the date and
time the data was created to be used in the default value for a date
attribute?
Thanks,
Lee
--
http://www.leegillen.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden