name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
- Subject: name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
- From: Jerry Krinock <email@hidden>
- Date: Sat, 7 Feb 2009 08:31:10 -0800
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@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