From d3f908d43fcfbfb45e2f969e82c2e9893fac8f3c Mon Sep 17 00:00:00 2001
From: Daniel Tull
Date: Wed, 25 Jan 2012 10:54:29 +0000
Subject: [PATCH] Revert "Add key value coding for count on NSArray"
This reverts commit 9fa14f961771ef408ed0ea29f7ab1b7c059f8830.
---
mogenerator.m | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/mogenerator.m b/mogenerator.m
index 3b7abc59..aa5ca60d 100644
--- a/mogenerator.m
+++ b/mogenerator.m
@@ -57,17 +57,6 @@ - (NSArray*)entitiesWithACustomSubclassVerbose:(BOOL)verbose_ {
@end
-@implementation NSArray (countKeyValueCoding)
-
-- (id)valueForKey:(NSString *)key {
-
- if ([key isEqualToString:@"count"])
- return [NSNumber numberWithUnsignedInteger:[self count]];
-
- return [super valueForKey:key];
-}
-@end
-
@implementation NSEntityDescription (customBaseClass)
- (BOOL)hasCustomSuperentity {
NSEntityDescription *superentity = [self superentity];