• 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: Default value for Date Atttribute in Core Data application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Default value for Date Atttribute in Core Data application (From: "Lee Gillen" <email@hidden>)

  • Prev by Date: Default value for Date Atttribute in Core Data application
  • Next by Date: What is alternative to PDFKit on OS X prior to 10.4?
  • Previous by thread: Default value for Date Atttribute in Core Data application
  • Next by thread: Re: Default value for Date Atttribute in Core Data application
  • Index(es):
    • Date
    • Thread