NSDictionary trouble
NSDictionary trouble
- Subject: NSDictionary trouble
- From: Shawn Rutledge <email@hidden>
- Date: Tue, 19 Jan 2010 09:53:03 -0700
I wish NSDictionary (NSMutableDictionary actually) could handle
arbitrary mappings of one type of object to another, without copying
the keys. A string makes a good key most of the time but what about
the case where you want to do the reverse mapping, to find the string
which you have associated with a particular object? I'm accustomed to
things like Qt and Java where hashtables can contain anything for both
key and value. Is there an alternative which does work that way? I
didn't try CFDictionary yet; is that appropriate for an iPhone app?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden