Re: Saving Managed Object Context
Re: Saving Managed Object Context
- Subject: Re: Saving Managed Object Context
- From: Quincey Morris <email@hidden>
- Date: Mon, 23 Aug 2010 14:48:07 -0700
On Aug 23, 2010, at 09:33, Ayers, Joseph wrote:
> NSError *error = nil;
> if (![[self managedObjectContext] save: &error]) {
> NSLog(@"Error while saving\n%@",
> ([error localizedDescription] != nil) ? [error localizedDescription]: @"Unknown Error");
>
> Results in:
>
> 2010-08-22 20:31:32.385 Roboplasm[3508:a0f] Error while saving
> TapeList is a required value.
The error means that some entity is defined to have a to-one relationship to TapeList, and the relationship property is defined to be non-optional, but in some object the relationship is actually nil.
_______________________________________________
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