10.9 Bug in Core Data : Entity Description methods
10.9 Bug in Core Data : Entity Description methods
- Subject: 10.9 Bug in Core Data : Entity Description methods
- From: Jerry Krinock <email@hidden>
- Date: Thu, 31 Oct 2013 07:17:12 -0700
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 (email@hidden)
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:
This email sent to email@hidden