Greg Parker notes that one should not use
objc_setAssociatedObject() to attach associated objects to immutable value-like types such as
NSString. The reason is that, due to de-duplication and tagged pointers, the objects may be shared and/or immortal.
Stay up-to-date by subscribing to the Comments RSS Feed for this post.