Skip to content

Instantly share code, notes, and snippets.

@interface NSManagedObject (Serialization)
- (NSDictionary*) toDictionary;
- (void) populateFromDictionary:(NSDictionary*)dict;
+ (NSManagedObject*) createManagedObjectFromDictionary:(NSDictionary*)dict
inContext:(NSManagedObjectContext*)context;
@end
@fechu
fechu / Updater.m
Created January 16, 2014 14:07
Updater class to migrate to a new CoreData model
#import "Updater.h"
#import "SemesterOld.h"
#import "Semester.h"
#import "Fach.h"
#import "Subject.h"
@interface Updater ()
- (void)setupOldStack;
- (void)setupNewStack;