Fix subscripting in 10.7
This commit is contained in:
1 parent
d1360727ec
commit
29e8fe453f
8 files changed
+25
-37
No files matched your search
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user