Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data NSSQLiteStoreType problem



Chris,
Thank you for your response.

Describe the relationship in more detail. Specifically, what does its inverse look like? If it's missing an inverse, or has a to-one inverse instead of a to-many inverse, that could easily explain what you're seeing;

It doesn't have any inverse relationship. One entity(A) has a to-many relationship
to another entity(B), but B doesn't have any relationship to A.


I added B to A with the method and A had Bs before I closed the app.
Then when I restart the app, some As have lost all Bs, while other As who
haven't lost Bs have all Bs. All or nothing.


But if having no inverse relationship is a problem, I suppose the behaviors of
NSXMLStoreType and NSBinaryStoreType are the same.


In my case, only NSSQLiteStoreType has this problem.

For Core Data, that means the accessor methods for to-many relationships need to follow this naming pattern -- which is the standard naming pattern for set KVC:

Thank you, I corrected the method names.

-Chataka

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Core Data NSSQLiteStoreType problem (From: email@hidden)
 >Re: Core Data NSSQLiteStoreType problem (From: Chris Hanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.