• 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
[iPhone] NSPredicate formatting questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iPhone] NSPredicate formatting questions


  • Subject: [iPhone] NSPredicate formatting questions
  • From: Sandro Noël <email@hidden>
  • Date: Sat, 21 Aug 2010 18:40:44 -0400

Greetings.

i'm trying to set a predicate to query some deep object in my model.
my model is as so.

member is part of a category
the category has a name.


while in a member resultset i want to filter the content on category names.

[NSPredicate predicateWithFormat:@"(caregory.name IN %@)",[selections objectForKey:kPredicateFieldNamesArray]];

I crash with:
'unimplemented SQL generation for predicate : (caregory.name IN {"Boutiques"})'

I've otherwise tried:
[NSPredicate predicateWithFormat:@"(caregory.@name IN %@)",[selections objectForKey:kPredicateFieldNamesArray]];
'Unsupported KVC aggregate in keypath: caregory.@name'

Am I missing something?
I thought KVC was part of the Predicates.

any pointers are welcome.
Sandro_______________________________________________

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: [iPhone] NSPredicate formatting questions
      • From: Wyatt Webb <email@hidden>
  • Prev by Date: Re: warning: initialization from distinct Objective-C type
  • Next by Date: bind:toObject:withKeyPath:options: being called twice
  • Previous by thread: Re: warning: initialization from distinct Objective-C type
  • Next by thread: Re: [iPhone] NSPredicate formatting questions
  • Index(es):
    • Date
    • Thread