• 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
Re: Tiger problem after modifying managed object model at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiger problem after modifying managed object model at runtime


  • Subject: Re: Tiger problem after modifying managed object model at runtime
  • From: Kai BrĂ¼ning <email@hidden>
  • Date: Fri, 30 Nov 2007 09:50:18 +0100

Hi Ben,

thanks a lot, this solved the problem.

Only, Leopard seems to add new properties to subentities immediately (that is, not deferred until the model is added to the NSPersistentStoreCoordinator).

So now I recursively add new properties to subentities and simply stop if I find the property in a subentity already.

Kai



>>I am modifying a managed object model at runtime after having merged it from separate .mom files (see also
>>my earlier post "Core Data: Cross-Model Relationships").
>>
>>The modification is setting up a few relationships between the now merged models. It works all nice under
>>Leopard, but fails under Tiger. The modifications are done under Tiger, too, as far as I checked it in the
>>debugger. But when trying to create entities with the resulting model, I get an exception saying
>>"<FCTableLineItem 0x4f2210> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the
>>key usedByInvoiceItems." when trying to insertNewObjectForEntityForName for entity "TableLineItem":
>
>On Tiger, during runtime modifications to the model, Core Data doesn't automatically add individual properties to subentities.  On Leopard, we make an effort to do so at the time to model is added to the NSPersistentStoreCoordinator.
>--
>
>-Ben

_______________________________________________

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

References: 
 >Re: Tiger problem after modifying managed object model at runtime (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Toolbar items fail to appear on Tiger
  • Next by Date: Re: Custom alerts for Core Data validation errors ... how to?
  • Previous by thread: Re: Tiger problem after modifying managed object model at runtime
  • Next by thread: Customizing horizontal scroller:
  • Index(es):
    • Date
    • Thread