Search
“nsdictionary”
More pages from the web
1–1 of 1-
shikii.net/blog
Shiki | I'm so bad with words that I can't even make a cool tagline
Shiki I'm so bad with words that I can't even make a cool tagline HomeAbout Contact Using an object?s id as a key in NSDictionary Shiki ? August 10, 2011 I was working on a utility class and was playing with the idea of using the id of an object (e.g. NSObject) as a key in NSDictionary. Setting it directly doesn?t work though: NSObject *obj = [[[NSObject alloc] init] autorelease]; // we'll use this as the key NSMutableDictionary *dict = [[[NSMutableDictionary alloc
