Występuje awaria podczas zmiany atrybutu BOOL obiektu NSManagedObject.Błąd danych podstawowych NSInvalidArgumentException
Kod zapisać obiekt jest:
self.detailItem.bookmark = [NSNumber numberWithBool:YES];
NSError *error = nil;
if (! [self.detailItem.managedObjectContext save:&error])
{
// Handle the error.
}
NSLog(@"%@", error);
i błąd:
Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. The left hand side for an ALL or ANY operator must be either an NSArray or an NSSet. with userInfo (null)
2011-08-18 15:41:32.866 Codes[5260:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The left hand side for an ALL or ANY operator must be either an NSArray or an NSSet.'
Musisz dodać więcej kodu - jak wygląda twoja szczegółowością; czy to tylko NSManagedObject? – deanWombourne
Tak, 'detailItem' jest po prostu NSManagedObject z atrybutem BOOL o nazwie' bookmark'. –