Re: CoreData, reset a persistent store
Re: CoreData, reset a persistent store
- Subject: Re: CoreData, reset a persistent store
- From: Pierre Chatelier <email@hidden>
- Date: Wed, 15 Nov 2006 22:19:00 +0100
[fetchRequest setPredicate:[NSPredicate
predicateWithFormat:@"SELF != nil"]];
May I ask what the purpose of this line is?
This is the predicate I use to fetch all objects (in order to delete
them afterwards).
while((object = [enumerator nextObject])) {
if (![object isFault]) {
NSLog(@"Object is not faulted");
}
[managedObjectContext deleteObject:object];
}
No "Object is not faulted" is displayed in the log.
Do you have anything in the awakeFromFetch method by chance?
No, I do not have rewritten awakeFromFetch. Actually my entity is of
class NSManagedObject I did not subclass it.
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: Elise van Looij <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: Elise van Looij <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: Elise van Looij <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: "Marcus S. Zarra" <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: "I. Savant" <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: "Marcus S. Zarra" <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>) |
| >Re: CoreData, reset a persistent store (From: "I. Savant" <email@hidden>) |