• 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 unable to save Date, Name etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data unable to save Date, Name etc.


  • Subject: Re: Core data unable to save Date, Name etc.
  • From: Alexander Spohr <email@hidden>
  • Date: Mon, 19 Oct 2009 08:25:30 +0200


Am 18.10.2009 um 20:50 schrieb Harish Yarlagadda:

I have a Class Math which extends NSManagedObject and has some dynamic propertiesa. name (String) b. date (Date)
I using xcdatamodel for modeling my tables. I am using String and Date respectively from xcdatamodel.
I am creating a new match object using insertNewObjectForEntityForName.

Looks good.

The object match isn't null but I have issues saving it to the DB (SQLite).
If I make the fields, name or date (non-optional) in xcdatamodel the program crashes trying to save. It gives a error 1570, NSValidationMissingMandatoryPropertyError.

Please provide the complete exception message. And maybe the header of your class.

I am assign the date using match.date = [NSDate date]; I aslo tried [match setDate:[NSDate date]];

Looks good.

When I made fields optional the program is not crashing but it is not saving all the data.
I am struggling with this issue for the last two weeks. Any help would be greatly appreciated.
Thanks,Harry
--- On Sun, 10/18/09, email@hidden <email@hidden > wrote:

Next time please don’t forward your whole Cocoa-dev Digest.

	atze


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Core data unable to save Date, Name etc. (From: Harish Yarlagadda <email@hidden>)

  • Prev by Date: Re: Within UITableViewCell: capturing UISegmentedControl event & Row number?
  • Next by Date: Re: OSX have that is equivalent to WaitMessage() Win32 API
  • Previous by thread: Core data unable to save Date, Name etc.
  • Next by thread: Getting a view's size?
  • Index(es):
    • Date
    • Thread