Sha256: 4c706adfc3104bb944609a459a9aeef71f25a0f02a79fda9f8a1218374657ede
Contents?: true
Size: 531 Bytes
Versions: 18
Compression:
Stored size: 531 Bytes
Contents
#import "CoreDataQueryManagedObjectBase.h" #import <objc/runtime.h> @implementation CoreDataQueryManagedObjectBase - (id)relationshipByName:(NSString *)name; { // should be overriden by the subclass printf("Unimplemented\n"); abort(); return nil; } + (void)defineRelationshipMethod:(NSString *)name; { IMP imp = imp_implementationWithBlock(^id(CoreDataQueryManagedObjectBase *entity) { return [entity relationshipByName:name]; }); class_addMethod([self class], NSSelectorFromString(name), imp, "@@:"); } @end
Version data entries
18 entries across 18 versions & 1 rubygems