> On Jan 11, 2016, at 9:48 AM, Dave <d...@looktowindward.com> wrote: > > I have an object that is a wrapper around a CFTypeRef. I’d like to be able to > check if this object has changed, can I use the safely use the CFHash() > function to do this.
No. If the object has changed, its hash isn’t guaranteed to change; there exist hash collisions where two different values have the same hash. (This is inevitable since there are only 2^32 hash values, but a nearly infinite number of different strings, arrays, etc.) —Jens _______________________________________________ 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