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

Version Path
cdq-2.0.0 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.8 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.7 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.6 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.4 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.3 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.2 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.1 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-1.0.0 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.11 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.10 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.9 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.8 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.7 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.6 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.5 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.2 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m
cdq-0.1.1 vendor/cdq/ext/CoreDataQueryManagedObjectBase.m