This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface AbstractTestCase: XCTestCase | |
@end | |
@implementation | |
- (void)performTest:(XCTestRun *)run { | |
if (NO == ([self class] == [AbstractTestCase class])) { | |
[super performTest:run]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
import CoreData | |
var model = NSManagedObjectModel() | |
var personEntity = NSEntityDescription() | |
personEntity.name = "Person" | |
var name = NSAttributeDescription() | |
name.attributeType = NSAttributeType.StringAttributeType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
NSURL *u = [NSURL fileURLWithPath:@"/Users/nick/Source/Builds/Debug-iphonesimulator/Demo.app/Demo.momd"]; | |
NSManagedObjectModel *m = [[NSManagedObjectModel alloc] initWithContentsOfURL:u]; | |
NSPersistentStoreCoordinator *psc = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:m]; | |
[m release]; m = nil; | |