aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPArrayAdditions.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPArrayAdditions.h')
-rw-r--r--Source/SPArrayAdditions.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/SPArrayAdditions.h b/Source/SPArrayAdditions.h
index 044699db..2d59d055 100644
--- a/Source/SPArrayAdditions.h
+++ b/Source/SPArrayAdditions.h
@@ -25,11 +25,7 @@
#import <Cocoa/Cocoa.h>
static inline id NSArrayObjectAtIndex(NSArray* self, NSUInteger i) {
- typedef id (*SPArrayObjectAtIndexMethodPtr)(NSArray*, SEL, NSUInteger);
- static SPArrayObjectAtIndexMethodPtr SPNSArrayObjectAtIndex;
- if (!SPNSArrayObjectAtIndex) SPNSArrayObjectAtIndex = (SPArrayObjectAtIndexMethodPtr)[self methodForSelector:@selector(objectAtIndex:)];
- id to_return = SPNSArrayObjectAtIndex(self, @selector(objectAtIndex:), i);
- return to_return;
+ return (id)CFArrayGetValueAtIndex((CFArrayRef)self, i);
}