• 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: Another CFTypeRef question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Another CFTypeRef question (From: Dave <email@hidden>)
 >Re: Another CFTypeRef question (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Another CFTypeRef question
  • Next by Date: OT: Swift Code Autoformatter?
  • Previous by thread: Re: Another CFTypeRef question
  • Next by thread: OT: Swift Code Autoformatter?
  • Index(es):
    • Date
    • Thread