Re: storing pointers in a dictionary
Re: storing pointers in a dictionary
- Subject: Re: storing pointers in a dictionary
- From: Eli Bach <email@hidden>
- Date: Fri, 12 Mar 2010 13:19:41 -0700
On Mar 12, 2010, at 1:00 PM, Joel Reymont wrote:
> What is the easiest way to store a pointer in CFMutableDictionary, assuming CFNumber was used as a key?
>
> I don't need to retain or release this pointer, look it up, insert, delete, etc.
>
> Thanks, Joel
You might want:
From NSValue:
+ (NSValue *)valueWithPointer:(const void *)pointer;
- (void *)pointerValue;
Eli
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden