• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Read lines from very large text file
  • Next by Date: Re: performSelector:withObject fails with class object
  • Previous by thread: Re: What alternatives exist for objc_setClassHandler?
  • Next by thread: Re: name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
  • Index(es):
    • Date
    • Thread