@gparker I don't know what this means, but I'm scared now
-
-
- View other replies
-
-
@danielpunkass@rentzsch@gparker The question boils down to what is "value-like" and who defines that interpretation? UIImage? NSData? - View other replies
-
@Bagelturf@danielpunkass@rentzsch@gparker anything you'd call -isEqual: on -
@ben_lings@Bagelturf@rentzsch@gparker Is that meant to be a joke? - View other replies
-
@danielpunkass@Bagelturf@rentzsch@gparker for non-value objects, you'd probably just use pointer equality - View other replies
-
@ben_lings@Bagelturf@rentzsch I suspect@gparker’s warning applies to a far smaller set of classes than anything you’d call isEqual: with. -
@danielpunkass@Bagelturf@rentzsch@gparker yes definitely! In principle though, any immutable value could be uniqued (?) - Show more
-
-
-
@gparker do you mean don't objc_setAssociatedObject(<value_type>, key, obj) or don't objc_setAssociatedObject(obj, key, <value_type>)? - View other replies
-
@nicklockwood@gparker More like don’t use associated objects for NSString or UIColor. - View other replies
-
-
@nicklockwood@steipete@gparker surely means the former, the second wouldn't be a problem with instance deduping. -
@manuelmaly@steipete@gparker that's what I assumed, but when receiving a dire warning it's best to be clear about these things ;-)
-
-
-
@gparker ah – I get it. you mean don't associate something _to_ a value type. Gotcha. - View other replies
- Show more
-
-
-
@gparker I’ve been bit hard by NSIndexPath there. Now I convert to strings first. -
@SlaunchaMan How are you storing the strings, then? Or are you just using the strings for comparisons later? - View other replies
-
@moretension I have it backwards from what@gparker meant, I think. Instead of associating an index path with an object, I use the string.
-
-
@gparker Can you explain further? What unexpected behavior will occur?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Greg Parker
rentzsch
Daniel Jalkut
Steve Weller
Ben Lings
Nick Lockwood
Peter Steinberger
Manuel Maly
Ken Ferry
Jeff Kelley
Andrew Mortensen