Re: Another CFTypeRef question
Re: Another CFTypeRef question
- Subject: Re: Another CFTypeRef question
- From: Kyle Sluder <email@hidden>
- Date: Thu, 14 Jan 2016 10:08:37 -0600
On Thu, Jan 14, 2016, at 08:54 AM, Clark Cox wrote:
> No. It does not change. A CF object has a single address for its
> lifetime.
>
> > On Jan 14, 2016, at 06:42, Dave <email@hidden> wrote:
> >
> > Hi,
> >
> > Does the pointer value of a CFTypeRef change during it’s lifetime? Can I safely uses the string value of the pointer %p as a key to a dictionary?
That said, this is a very strange question. It sounds like you're trying
to implement a hash table by working around the requirement that an
NSDictionary key's must be copiable. Are you sure NSMapTable is not
better for your needs?
--Kyle Sluder
_______________________________________________
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