• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Efficient searching of an NSArray of NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Efficient searching of an NSArray of NSDictionary
      • From: Oftenwrong Soong <email@hidden>
References: 
 >Efficient searching of an NSArray of NSDictionary (From: Pascal Harris <email@hidden>)

  • Prev by Date: Efficient searching of an NSArray of NSDictionary
  • Next by Date: Re: UIControl touchInside property
  • Previous by thread: Efficient searching of an NSArray of NSDictionary
  • Next by thread: Re: Efficient searching of an NSArray of NSDictionary
  • Index(es):
    • Date
    • Thread