Re: Predicate Row Template array within array
Re: Predicate Row Template array within array
- Subject: Re: Predicate Row Template array within array
- From: Keary Suska <email@hidden>
- Date: Sun, 30 Nov 2014 10:18:20 -1000
On Nov 30, 2014, at 9:02 AM, Trygve Inda <email@hidden> wrote:
> {
>
> NSString* name;
> NSDate* date;
> NSArray* words;
> }
> Objects;
>
> The words array looks like:
> {
>
> NSString* id;
> NSString* word;
> }
> Words;
>
>
> As a follow up:
>
> When I use a left expression of:
>
> @"words.word"
>
> And a modifier of: NSAnyPredicateModifier
>
> My predicate ends up as:
>
> ANY words.word CONTAINS[cd] "Test"
>
> But I get:
> [<__NSCFString 0x610000277d00> valueForUndefinedKey:]: this class is not key
> value coding-compliant for the key word.
>
> But it is.
Notice that the object being queried is an NSString, and not the expected "word" object. This either means that your "words" array contains at least one plain NSString, or you are experiencing a memory management issue. Break on exception and see what is in that NSString.
HTH,
Keary Suska
Esoteritech, Inc.
_______________________________________________
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