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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to