• 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 issues iOS 4.0.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: core data issues iOS 4.0.2
      • From: Damien Cooke <email@hidden>
References: 
 >core data issues iOS 4.0.2 (From: Damien Cooke <email@hidden>)

  • Prev by Date: Re: Binding an objects "Enabled" to a button in IB
  • Next by Date: Re: Simple instance [[alloc] init] question.
  • Previous by thread: core data issues iOS 4.0.2
  • Next by thread: Re: core data issues iOS 4.0.2
  • Index(es):
    • Date
    • Thread