On 2013 Oct 31, at 08:51, Mike Abdullah <mabdul...@karelia.com> wrote:

> Sounds to me like the dictionary is somehow internally set up to use pointer 
> equality. For the literal syntax, perhaps that happens to work out as Core 
> Data is using the same underlying string objects?

That’s what I thought too, Mike.  It’s all in that Developer Forum post I 
referenced,

https://devforums.apple.com/message/912837#912837

Sorry for the cross-referenced-post.  I wish Apple would eliminate one of these 
fora!

> An interesting test would be to first make a copy of the dictionary (both 
> using -copy and +dictionaryWithDictionary:). How does that affect things?

Ditto on the Developer Forum.  Indeed, +dictionaryWithDictionary: is the 
workaround.

So it looks like I should file a bug.



_______________________________________________

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

Reply via email to