Re: NSTableView+NSArraController+CoreData

Hamish Allan <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Mon, Nov 23, 2009 at 8:11 PM, parfeon <[email protected]> wrote:

> Build, all works great, table view shows my track titles. But when I try to
> set filter predicate for aController, which should show tracks from playlist
> with provided playlist name.
> So I make this:
> [aController setFilterPredicate:[NSPredicate predicateWithFormat:@"ANY
> playlists.title like[c] %@", @"playlist #1"]];
>
> I'll get an exception:
> [<NSComparisonPredicate 0x5d07800> valueForUndefinedKey:]: this class is not
> key value coding-compliant for the key title.
>
> What I'm doing wrong? Maybe there is another way to solve this problem?

I'm not sure what you're doing wrong, but it might be informative to
try to build your predicate using expressions, compound predicates and
comparison predicates.

Best wishes,
Hamish
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.