Skip to content

Instantly share code, notes, and snippets.

Created July 11, 2012 13:05
What would you like to do?
Use subscripting with Xcode 4.4/iOS 4.3+
// Add support for subscripting to the iOS 5 SDK.
@interface NSObject (PSPDFSubscriptingSupport)
- (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