Re: <relationship fault: 0x4ee6830 ...>
Re: <relationship fault: 0x4ee6830 ...>
- Subject: Re: <relationship fault: 0x4ee6830 ...>
- From: Charilaos Skiadas <email@hidden>
- Date: Fri, 5 Aug 2005 16:55:48 -0500
On Aug 5, 2005, at 4:41 PM, Kaspar Fischer wrote:
Dear all,
I save a Core Data file to disk in the XML format and
when I open it again and use
NSLog("@%",entity)
to print some entities then I see lots of
"<relationship fault ..."
Is this a sign that something went wrong in saving/loading
the file? Or is it o.k. to see this?
For instance, I obtain the following output:
2005-08-05 23:35:42.759 Airs[28911] <AttributeItemDescription:
0x4eab760> (entity: TextAttributeItemDescription; id: 0x4e6ede0 <x-
coredata://B01944A7-ACA5-4FB1-9B02-C9FC770EA945/
TextAttributeItemDescription/p106> ; data: {
abbreviatedTitle = a;
attributesUsingThisItem = "<relationship fault: 0x4eaeac0
'attributesUsingThisItem'>";
color = "(...not nil..)";
colorData = <040b7479 70656473 74726561 6d8103e8 84014084
8484074e 53436f6c 6f720084 84084e53 4f626a65 63740085 84016303 8402>;
enclosingAttributeDescription = 0x4e6d020 <x-coredata://
B01944A7-ACA5-4FB1-9B02-C9FC770EA945/TextAttributeDescription/p103>;
title = a;
value = a;
})
I am asking because I have a bug (that shows up when
I redo an undone action). So did something go wrong
in saving/loading the file when "<relationship fault"'s
pop up after loading an XML-file? I once heard that
faults do not exist when one loads an XML-file...
Fault here does not refer to something being wrong. Read the Core
Data programming guide, http://developer.apple.com/documentation/
Cocoa/Conceptual/CoreData/index.html
especially the section of "Faulting and Uniquing" :
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdFaultUniquing.html#//apple_ref/doc/uid/TP30001202
Simply put, this just says the corresponding objects that the
relationship refers to have not been fetched yet, since there was no
reason for them to.
Maybe you can show us the relevant undo/redo code that you think
contains the bug?
Many thanks,
Kaspar
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden