Skip to content

Commit

Permalink
Revert "Add key value coding for count on NSArray"
Browse files Browse the repository at this point in the history
This reverts commit 9fa14f9.
  • Loading branch information
danielctull committed Jan 25, 2012
1 parent 9a31dd1 commit d3f908d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions mogenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d3f908d

Please sign in to comment.