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 protected] <[email protected] > wrote:

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

        atze


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to