• 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: Predicate Row Template array within array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Predicate Row Template array within array (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Proper use of representedObject in segues
  • Next by Date: Xcode 6.1 - IB giving constraints warnings
  • Previous by thread: Re: Predicate Row Template array within array
  • Next by thread: Proper use of representedObject in segues
  • Index(es):
    • Date
    • Thread