Re: core data issues iOS 4.0.2
Re: core data issues iOS 4.0.2
- Subject: Re: core data issues iOS 4.0.2
- From: Fritz Anderson <email@hidden>
- Date: Mon, 30 Aug 2010 20:11:52 -0500
Googling "CoreData could not fulfill a fault" yields <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html> as the very first result; it took me three seconds to do this.
You don't give enough information to say for sure, but can you tell us whether the second cause for this error (not propagating the deletion into relationships) fits your case?
— F
On 30 Aug 2010, at 4:40 PM, Damien Cooke wrote:
> I have been deleting objects with code similar to this.
>
> NSManagedObjectContext *context = [[self fetchedResultsController] managedObjectContext];
>
> [context deleteObject:videoEntity];
> [managedObjectContext processPendingChanges];
>
> //commit the delete
> NSError *saveError = nil;
> if (![context save:&saveError])
> {
> NSLog(@"CoreData Failure");
> }else {
> //all good
> NSLog(@"CoreData delete success");
> NSLog(@"\n\nNumber of objects in store after delete: %d\n\n", [[self.fetchedResultsController fetchedObjects] count]);
> }
>
> This works fine (as far as deleting the entry) however it crashes with a crash like that shown below: I also saw a recommendation to add this:
>
> - (void)controllerDidChangeContent:(NSFetchedResultsController *)controller
> {
> NSLog(@"controllerDidChangeContent");
> }
>
> This seems to make no difference to the crash.
_______________________________________________
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