Fix subscripting in 10.7

This commit is contained in:
galad87 committed 2015-08-29 11:41:56 +02:00
1 parent d1360727ec
commit 29e8fe453f
8 files changed
+25 -37

No files matched your search

+7 -2
View File
@@ -1,3 +1,8 @@
//
// SBLogger.m
// Subler
//
#import "NSArray+Subscripting.h"
#import <objc/runtime.h>
@@ -7,7 +12,7 @@
{
Class class = [self class];
SEL swizzledSelector = @selector(bnr_objectAtIndexedSubscript:);
SEL swizzledSelector = @selector(dg_objectAtIndexedSubscript:);
Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector);
@@ -18,7 +23,7 @@
);
}
- (id)bnr_objectAtIndexedSubscript:(NSInteger)index
- (id)dg_objectAtIndexedSubscript:(NSInteger)index
{
return [self objectAtIndex:index];
}