• 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 save problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Core-data save problem


  • Subject: re: Core-data save problem
  • From: Ben Trumbull <email@hidden>
  • Date: Sat, 19 Jul 2008 01:08:34 -0700

I try to save the data, then I am sometimes present with a
dialog saying:
"The document “Untitled” could not be saved as “pktest.”. Cannot save
objects with references outside of their own stores."

Dirkjan,

How many persistent stores have you added to the NSPersistentStoreCoordinator ? That's NSManagedObjectExternalRelationshipError. Core Data does not support direct relationships between objects being stored in different files (persistent stores). The iClass example in /Developer/Examples/ CoreData/ shows how you can perform an indirect style of ad hoc cross store relationships by serializing the -URIRepesentation of an NSManagedObjectID.

Also, I keep these and other similar breakpoints handy in my ~/.gdbinit file:

future-break objc_exception_throw
future-break +[NSError errorWithDomain:code:userInfo:]
future-break handleFailureInMethod:object:file:lineNumber:description:
future-break handleFailureInFunction:file:lineNumber:description:
future-break malloc_printf
future-break malloc_error_break

- 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


  • Prev by Date: Re: Dot Syntax docs missing?
  • Next by Date: SOLVED: CoreData Property access compiles, but fails at runtime
  • Previous by thread: Core-data save problem
  • Next by thread: the alert sheet without the application icon
  • Index(es):
    • Date
    • Thread