• 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
CoreData - $FETCH_SOURCE and fetched properties (coredata newby)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData - $FETCH_SOURCE and fetched properties (coredata newby)


  • Subject: CoreData - $FETCH_SOURCE and fetched properties (coredata newby)
  • From: "Jose P." <email@hidden>
  • Date: Thu, 2 Jul 2009 19:41:18 +0200

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 (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


  • Prev by Date: Drag and Drop UI
  • Next by Date: Windows on main thread always only sometimes?
  • Previous by thread: Drag and Drop UI
  • Next by thread: Windows on main thread always only sometimes?
  • Index(es):
    • Date
    • Thread