https://gist.github.com/nuthatch/5607405에있는 NSManagedObject + Serialization.h라는 NSManagedObject에서 범주를 사용하고 있습니다.NSManagedObject 직렬화
모든 것이 잘 작동하지만이 방법을 구현해야하나요? 나는 어떤 물건을 건너 뛰고 싶다.
- (NSDictionary*) toDictionary {
// Check to see there are any objects that should be skipped in the traversal.
// This method can be optionally implemented by NSManagedObject subclasses.
NSMutableSet *traversedObjects = nil;
if ([self respondsToSelector:@selector(serializationObjectsToSkip)]) {
traversedObjects = [self performSelector:@selector(serializationObjectsToSkip)];
}
return [self toDictionaryWithTraversalHistory:traversedObjects];
} 내가 개체의 관계를 추가 할 수는 생략하는 방법
?
많은 감사
관리되는 객체의 하위 클래스에서
감사합니다. 완벽하게 작동합니다! – ourmanflint