Re: filteredArrayUsingPredicate - need help with run time error
Re: filteredArrayUsingPredicate - need help with run time error
- Subject: Re: filteredArrayUsingPredicate - need help with run time error
- From: Yevgeniy Goldberg <email@hidden>
- Date: Fri, 23 Mar 2007 08:28:22 -0500
Thanks for the hint!
I've looked it up and found that NSArrayController should use
setPredicate, while filterArrayUsingPredicate belongs to NSArray.
However, when I change to code to this:
[soundArrayController setPredicate:predicate];
I still get:
-[NSArrayController setPredicate:]: selector not recognized [self =
0x3c65b0]
What am I still missing?
-Eugene
On Mar 22, 2007, at 11:28 PM, I. Savant wrote:
On Mar 23, 2007, at 12:14 AM, Yevgeniy Goldberg wrote:
*** NSRunLoop ignoring exception '*** -[NSArrayController
filteredArrayUsingPredicate:]: selector not recognized [self =
0x3c65b0]' that raised during posting of delayed perform with
target 30bee0 and selector 'invokeWithTarget:'
Is there something obvious I need to look for?
Yes ... you need to look for the method
"filteredArrayUsingPredicate:" in the documentation. When you find
it, look for the object to which it belongs.
Here's a hint: as the error message clearly states, it's not
NSArrayController. :-)
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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