Created
May 17, 2014 18:53
-
-
Save zwaldowski/3e8fddce64e6ece8e225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
NSMapTable *table = [NSMapTable strongToWeakObjectsMapTable]; | |
[table setObject:@"foo" forKey:@protocol(NSCopying)]; | |
[table setObject:@"bar" forKey:[NSString class]]; | |
NSLog(@"%@", table); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment