Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
If you want to add the new array/dictionary accessors to IOS5
// Put this in your ..-Prefix.pch file
// Add support for subscripting to the iOS 5 SDK.
@interface NSObject (SubscriptingSupport)
- (id)objectAtIndexedSubscript:(NSUInteger)idx;
- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx;
- (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key;
- (id)objectForKeyedSubscript:(id)key;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment