re: Core-data save problem
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