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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to