Re: Efficient searching of an NSArray of NSDictionary
Re: Efficient searching of an NSArray of NSDictionary
- Subject: Re: Efficient searching of an NSArray of NSDictionary
- From: Oftenwrong Soong <email@hidden>
- Date: Tue, 29 Sep 2009 09:53:12 -0700 (PDT)
Hi all,
IIUC, what you're saying is that NSPredicate is used as a filter. Is that correct? If so, is Predicate Editor (in IB) related in some way? And if so, what is it supposed to do? Honestly I could never understand the docs on this particular control. :)
Thanks,
Soong
On Sept 29, 2009 at 7:48:41 AM, I. Savant wrote:
>On Sep 29, 2009, at 10:38 AM, Pascal Harris wrote:
>
>> My current method is to iterate through the array, searching for a match for
<snip>
>
> Two points:
>
>1 - The examples are found by searching in XCode's documentation window or the ADC web site.
>
>2 - You can use NSPredicate (without Core Data). Read up on it and craft the appropriate predicate, then (hint: search keywords to follow) filter the array using the predicate.
_______________________________________________
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