• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
10.9 Bug in Core Data : Entity Description methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: 10.9 Bug in Core Data : Entity Description methods
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: NSSearchField and CR
  • Next by Date: Re: NSSearchField and CR
  • Previous by thread: Re: NSSearchField and CR
  • Next by thread: Re: 10.9 Bug in Core Data : Entity Description methods
  • Index(es):
    • Date
    • Thread