I'm trying to use a fetched property for the first time, to find "duplicate" objects, for example, objects with the same `name` property.

Documentation for Fetched Properties says that "The source [$FETCH_SOURCE] refers to the specific managed object that has this property". So, I define a fetched property on my entity, with a relation back to itself and, using the predicate-builder in Interface Builder,

   name == "$FETCH_SOURCE.name"

I run this on a test store which contains two objects that have `name` = "Joe". I expect that, for each "Joe" object, this fetched property should evaluate to a array containing itself and the other "Joe" object. Instead, I get an empty array.

If I change the predicate to

   name == "Joe"

then, for all objects, I get a set containing the two "Joe" objects, as expected.

What's wrong here ?

Thanks,

Jerry Krinock

_______________________________________________

Cocoa-dev mailing list ([email protected])

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