Efficient searching of an NSArray of NSDictionary
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