Skip navigation.
 
mlRe: Tiger problem after modifying managed object model at runtime
FROM : Ben Trumbull
DATE : Thu Nov 29 21:40:15 2007

>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

Related mailsAuthorDate
mlTiger problem after modifying managed object model at runtime Kai Brüning Nov 29, 15:44
mlRe: Tiger problem after modifying managed object model at runtime Kai Brüning Nov 29, 16:18
mlRe: Tiger problem after modifying managed object model at runtime Ben Trumbull Nov 29, 21:40
mlRe: Tiger problem after modifying managed object model at runtime Kai Brüning Nov 30, 09:50