• 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
Efficient searching of an NSArray of NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Efficient searching of an NSArray of NSDictionary


  • Subject: Efficient searching of an NSArray of NSDictionary
  • From: Pascal Harris <email@hidden>
  • Date: Tue, 29 Sep 2009 15:38:51 +0100

I have an application with an NSArray of NSDictionary (with 18 keys) which
populates an NSTableView.  I am concerned that my method of accessing the
contents of my array are sub-optimal and I'm therefore seeking advice from
the experts.

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).

This has come to a particular head because I need to implement an
NSSearchField and I would like to be able to search for any instance of a
string in any key of any array entry.

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.

Help!  And thanks, in advance.
_______________________________________________

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: Jens Alfke <email@hidden>
    • Re: Efficient searching of an NSArray of NSDictionary
      • From: "I. Savant" <email@hidden>
  • Prev by Date: UIControl touchInside property
  • Next by Date: Re: Efficient searching of an NSArray of NSDictionary
  • Previous by thread: Re: UIControl touchInside property
  • Next by thread: Re: Efficient searching of an NSArray of NSDictionary
  • Index(es):
    • Date
    • Thread