darling-cocotron/CoreData/NSInMemoryPersistentStore.m
2020-05-12 17:04:16 -04:00

25 lines
467 B
Objective-C

#import "NSInMemoryPersistentStore.h"
#import <CoreData/NSPersistentStoreCoordinator.h>
@implementation NSInMemoryPersistentStore
+ (NSDictionary *) metadataForPersistentStoreWithURL: (NSURL *) url
error: (NSError **) error
{
return nil;
}
- (NSString *) type {
return NSInMemoryStoreType;
}
- (BOOL) load: (NSError **) errorp {
return YES;
}
- (BOOL) save: (NSError **) error {
return YES;
}
@end