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: "I. Savant" <email@hidden>
- Date: Tue, 29 Sep 2009 10:48:41 -0400
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
a particular key. I suspect that there may be a faster way - but I
cannot
find a tutorial (especially since all the example code seems to have
gone
AWOL in Snow Leopard).
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.
At this stage I would rather not use Core Data (even if this is the
most
optimal method) because I don't yet have a manual for it.
Core Data has nothing specifically to do with this problem. The
core technology that makes this easy is a mix of Cocoa Bindings and
NSPredicate.
--
I.S.
_______________________________________________
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