• 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
Strange Core Data problem after upgrade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Core Data problem after upgrade


  • Subject: Strange Core Data problem after upgrade
  • From: Rui Pacheco <email@hidden>
  • Date: Wed, 7 Oct 2009 17:25:46 +0100

Hi,
I upgraded to 10.6 midway through a project and bugs appeared where there
was none previously.

I am now seeing the error "Failed to call designated initialiser on
NSManagedObject class '' " when I created an object on the MOC or when I
fetch an object for editing. Step by step debugging showed that what seems
to generate the error is when I display the screen that allows the user to
interact with the data and not when I interact with the MOC in any way. This
is code that worked just fine under 10.5.

Second bug is when I try to add a property to an entity.

I tried to add a property of type NSNumber to an entity that inherits from
an abstract entity. Both had been created and work perfectly under 10.5. I
added the property, synthesized it, added the UI code and bindings. Data
communication from the model to the screen works because I can see the
default value appear when I load the window. Values are also being passed
from the screen to the model because if I do an NSLog(@"%@", model); I can
see the correct values.

The problem happens when Core Data tries to save the new entity. If I change
the default value I always get the error -[NSCFString stringValue]:
unrecognized selector sent to instance 0xe909d70. I am not calling
stringValue on this property.

Any ideas to what might cause this?

--
Best regards,
Rui Pacheco
_______________________________________________

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: Strange Core Data problem after upgrade
      • From: Kyle Sluder <email@hidden>
    • Re: Strange Core Data problem after upgrade
      • From: Volker in Lists <email@hidden>
  • Prev by Date: Re: app delegate +initialize
  • Next by Date: strange localization issue
  • Previous by thread: Memory corruption when moving from 10.5 to 10.6
  • Next by thread: Re: Strange Core Data problem after upgrade
  • Index(es):
    • Date
    • Thread