Re: Storing values in dictionary with their address as the key
Re: Storing values in dictionary with their address as the key
- Subject: Re: Storing values in dictionary with their address as the key
- From: Quincey Morris <email@hidden>
- Date: Mon, 28 Jul 2008 12:26:44 -0700
On Jul 28, 2008, at 11:13, Carter R. Harrison wrote:
If I wanted to store an object in a dictionary and set its key as
the object's memory address - how would I go about doing this?
The usual way would be to use the result of +[NSValue
valueWithNonretainedObject:] as a dictionary key.
_______________________________________________
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