• 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: Core data "now"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data "now"


  • Subject: Re: Core data "now"
  • From: Ryan Britton <email@hidden>
  • Date: Mon, 6 Nov 2006 14:12:32 -0800

That doesn't work. It gets changed to be the actual date prior to being stored in the model. There's no way to specify processed values like this at all in the model to my knowledge. It has to be done after actual insertion.


On Nov 6, 2006, at 1:41 PM, joe OneNinetyTwo wrote:

I think all you need to do is define the Default Value
as "today" in your Core Data Model and you're done.

Philip

--- Matthew Weinstein <email@hidden> wrote:

Dear cocoa-xperts,
I have an app I'm working on which uses core data,
and I created the
interface using the drag and drop from the core data
model and then
tweaking. Here's the problem: I have a date field
and I want it to
default to "now" whenever I hit add.  So I thought
what I'd do is
have an action in my document which is triggered by
the add button so
that it sends an add: to the array controller; fills
in @"Now" in my
date field. Now that works, in terms of filling in
the current date
(though not time) in the NSTextField, but it doesn't
actually update
the database?

How do I get my database to see that the field has
changed and update
appropriately?

Matthew Weinstein
 _______________________________________________
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






______________________________________________________________________ ______________
Sponsored Link


$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity -
Click now for info http://yahoo.ratemarketplace.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: 
 >Re: Core data "now" (From: joe OneNinetyTwo <email@hidden>)

  • Prev by Date: Scroll the text in NSTextField
  • Next by Date: scrolling and drawing porblems
  • Previous by thread: Re: Core data "now"
  • Next by thread: Re: Core data "now"
  • Index(es):
    • Date
    • Thread