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>
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 mails | Author | Date |
|---|---|---|
| Lee Gillen | Aug 10, 15:18 | |
| Robert Cerny | Aug 10, 15:56 | |
| Bill Coleman | Aug 13, 02:21 | |
| Lee Gillen | Aug 13, 20:14 |






Cocoa mail archive

