Skip to content

Instantly share code, notes, and snippets.

View danieleangeli's full-sized avatar

Daniele Angeli danieleangeli

View GitHub Profile
@danieleangeli
danieleangeli / NSManagedObjectArchiving.h
Created May 11, 2012 11:20 — forked from robertjpayne/NSManagedObjectArchiving.h
NSManagedObject Archiving and Unarchiving
#import <Foundation/Foundation.h>
@interface NSManagedObjectArchiver : NSObject
/*
* Takes a NSManagedObject and converts it to a NSData archive - it traverses all relationships ( including circular ) and archives it
*/
+ (NSData *)archivedDataWithRootObject:(NSManagedObject *)pObject;
@end