【发布时间】:2011-10-31 16:41:18
【问题描述】:
我对核心数据有一个错误:
{ NSLocalizedDescription = "操作无法\U2019完成。(Cocoa 错误 1570.)"; NSValidationErrorKey = CorbeilleItem; NSValidationErrorObject = " (entity: ACSheetList; id: 0xde22cd0 ; data: {\n Actions = \"\";\n CorbeilleItem = nil;\n Sections = \"\";\n idDoc = 0;\n title = nil ;\n})"; }
我的数据模型是下一个:
- http://imageshack.us/photo/my-images/214/xcode2.png/
- http://imageshack.us/photo/my-images/705/xcode.png/
我的源代码是:
ACSheetList *newSheet = (ACSheetList*)[NSEntityDescription insertNewObjectForEntityForName:@"ACSheetList" inManagedObjectContext:self.managedObjectContext];
@try {
if ([item isFault] == YES) {
NSLog(@"CorbeilleItem is fault");
}
if ([item isDeleted] == YES) {
NSLog(@"CorbeilleItem is deleted");
}
[newSheet setIdDoc:documentIdTemp];
[newSheet setTitle:@"title 0"];
[newSheet setCorbeilleItem:item];
[item setSheet:newSheet];
}
@catch (NSException *exception) {
[self addTrace:ERROR description:exception.reason];
NSLog(@"%@", [exception userInfo]);
}
你能帮帮我吗?
【问题讨论】:
标签: core-data