• 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: Storing values in dictionary with their address as the key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing values in dictionary with their address as the key


  • Subject: Re: Storing values in dictionary with their address as the key
  • From: Andy Lee <email@hidden>
  • Date: Mon, 28 Jul 2008 16:23:20 -0400

On Jul 28, 2008, at 3:41 PM, Andy Lee wrote:
On Jul 28, 2008, at 3:29 PM, Jonathan Hess wrote:
A good reason would be that you care about identity equality and not value equality. You care that the key is the exact same instance, not that it is an equivalent instance. (== vs isEqual:)

Ah, good point -- that would rule out my NSSet idea.

Or would it? Seems to me you could use an NSSet of NSValues. No need to create a dictionary. Quincey's example makes more sense, but it's not what the OP asked for.


Anyway, I'm still curious about the OP's motivation, but at this point that's just nosiness, not because I have anything constructive to add.

--Andy


_______________________________________________

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


References: 
 >Storing values in dictionary with their address as the key (From: "Carter R. Harrison" <email@hidden>)
 >Re: Storing values in dictionary with their address as the key (From: Dave Carrigan <email@hidden>)
 >Re: Storing values in dictionary with their address as the key (From: "I. Savant" <email@hidden>)
 >Re: Storing values in dictionary with their address as the key (From: Jonathan Hess <email@hidden>)
 >Re: Storing values in dictionary with their address as the key (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: draw string with ellipsis
  • Next by Date: Re: Drawing Graphs in Cocoa
  • Previous by thread: Re: Storing values in dictionary with their address as the key
  • Next by thread: Re: Storing values in dictionary with their address as the key
  • Index(es):
    • Date
    • Thread