When you send -objectForKey: to the dictionary returned by -[NSManagedObjectModel entitiesByName], -objectForKey: returns the expected result if the passed-in key is a literal constant such as @“foo”. But if you instead pass in a local variable whose value is constructed to be equal to @“foo”, -objectForKey: returns nil in Mac OS X 10.9.
In Mac OS X 10.8, it returns the expected value, whether the key is a constant or not. Method +[NSEntityDescription entityForName:inManagedObjectContext:] exhibits similar misbehavior. I posted this a few days ago on Developer Forums. For more info or discussion, go there… https://devforums.apple.com/message/912837#912837 I’ll file a bug if no one from here can explain it either. Jerry _______________________________________________ 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