Re: Another CFTypeRef question
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, Davewrote: > > > > 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Another CFTypeRef question
No. It does not change. A CF object has a single address for its lifetime. > On Jan 14, 2016, at 06:42, Davewrote: > > 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? > > All the Best > Dave > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/clarkcox3%40gmail.com > > This email sent to clarkc...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com