• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDictionary trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary trouble


  • Subject: Re: NSDictionary trouble
  • From: Paul Bruneau <email@hidden>
  • Date: Tue, 19 Jan 2010 13:09:42 -0500


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 (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


  • Follow-Ups:
    • Re: NSDictionary trouble
      • From: Jens Alfke <email@hidden>
References: 
 >NSDictionary trouble (From: Shawn Rutledge <email@hidden>)

  • Prev by Date: IKImageView & Filters
  • Next by Date: Re: Application crashes
  • Previous by thread: NSDictionary trouble
  • Next by thread: Re: NSDictionary trouble
  • Index(es):
    • Date
    • Thread