• 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
re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template


  • Subject: re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template
  • From: Ben Trumbull <email@hidden>
  • Date: Sat, 29 Aug 2009 17:38:03 -0700

I just created a fetch request template in my MOM that looked like:
SUBQUERY(platformInfos, $each, $each.platformName ==
$PLATFORM_NAME).@count == 0

I then looked up the template in the code and attempted to use it in the
usual manner with:
fetchRequestFromTemplateWithName:substitutionVariables:

should work

Core Data complained that it could not resolve the SQL for
$each.platformName == $PLATFORM_NAME, "because of the RHS".

I would have thought that this variable would be replaced as normal, even
though it is inside a SUBQUERY. Does anybody know if this is officially
disallowed, or a bug, or just developer-error somehow?

What your code look like for the substitution variables dictionary ?

- Ben



_______________________________________________

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: re: Core Data Predicate Builder - comparing dates
  • Next by Date: Re: Standard Alert Note/Warning/Stop icon NSImage Names?
  • Previous by thread: Re: Standard Alert Note/Warning/Stop icon NSImage Names?
  • Next by thread: Drawing a graph & testing ranges
  • Index(es):
    • Date
    • Thread