• 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: Core Data NSSQLiteStoreType problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data NSSQLiteStoreType problem


  • Subject: Re: Core Data NSSQLiteStoreType problem
  • From: email@hidden
  • Date: Sun, 11 Nov 2007 17:46:59 +0900

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:
This email sent to email@hidden


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

  • Prev by Date: Re: SenTestingKit fails when using CG-Only (Fixed)
  • Next by Date: Re: Notification when switching Spaces?
  • Previous by thread: Re: Core Data NSSQLiteStoreType problem
  • Next by thread: Re: Core Data NSSQLiteStoreType problem
  • Index(es):
    • Date
    • Thread