Skip navigation.
 
mlRe: Default value for Date Atttribute in Core Data application
FROM : Robert Cerny
DATE : Thu Aug 10 15:56:17 2006

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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlDefault value for Date Atttribute in Core Data application Lee Gillen Aug 10, 15:18
mlRe: Default value for Date Atttribute in Core Data application Robert Cerny Aug 10, 15:56
mlRe: Default value for Date Atttribute in Core Data application Bill Coleman Aug 13, 02:21
mlRe: Solved: Default value for Date Atttribute in Core Data application Lee Gillen Aug 13, 20:14