On Jan 19, 2010, at 11:53 AM, Shawn Rutledge wrote:

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?

When I want to find the key(s) for a given object, I use the - allKeysForObject method
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to