I added the following category methods in NSArrayExtended and NSMutableArrayExtended.
Added imports in my main.m. I still get the error:
'Array subscript is not an integer' with (for example)
NSString *name = attributes[@"name"];
Is my application of categories correct?
==================
NSArrayExtended.h:
#import <Foundation/Foundation.h>
@interface NSArray (BackwardsCompatibility)
@end
NSArrayExtended.m:
#import "NSArrayExtended.h"
@implementation NSArray (BackwardsCompatibility)
- (id)objectAtIndexedSubscript:(NSUInteger)idx
{
return [self objectAtIndex:idx];
}
@end
ditto for NSMutableArrayExtended.h and NSMutableArrayExtended.m.