mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
25 lines
467 B
Objective-C
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
|