Hi everybody

Here, a CoreData novice, stumped at a fairly simple issue, a bit under- documented by apple (Apple under-documenting? uh?).
If anyone can give me a hint, I'll be much in debt.

Well, the thing is about $FETCH_SOURCE and a Fetched property in Core Data.

I create two entities (xA and xB), and I want one of them to be linked as a fetched property of the other (xB has the fetched propery fXA). In the model builder, I create a fetched property with the type/ destination of the other (fXA is of type xA). One of them has an indexed number property (xA has xAitemId property, indexed), so fXA should have a predicate containing xAitemId. Then xB has a property that refers to xA: it should find its matching xA by looking at itself, as it contains a property xAitemIdinXB, with the same format as xAitemId and it is known that xAitemIdinB has a corresponding xAitemId, existing at least one xA managed object instance with xAitemId = xAitemIdinB.

Well, as far as I know, the fetched property of destination xA called fXA built in xB shoul contain the predicate (Expression):
xAitemId == $FETCH_SOURCE.xAitemIdinB
Not even writing the referral directly: xAitemId = 435345. The object NSLog always lists the property fXA in a xB instance as
fXA = "<relationship fault: 0x1dce50 'fXA'>";

Am I wrong at the predicates?

Thanks for reading, everyone.
Regards,
Jose
_______________________________________________

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 arch...@mail-archive.com

Reply via email to