Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread Jens Alfke
On Sep 29, 2009, at 7:38 AM, Pascal Harris wrote: 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.

Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread I. Savant
On Sep 29, 2009, at 1:21 PM, Todd Heberlein wrote: Don't forget, Google yields different results for different people based on a variety of factors. Good point. My intention, however, is not to instruct on how to use Google, but rather to use it in the first place. -- I.S. _

Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread Todd Heberlein
By the way, a quick google search of, "nspredicateeditor example" yields a very helpful first result ... Don't forget, Google yields different results for different people based on a variety of factors. Todd ___ Cocoa-dev mailing list (Cocoa-de

Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread I. Savant
On Sep 29, 2009, at 12:53 PM, Oftenwrong Soong wrote: is Predicate Editor (in IB) related in some way? And if so, what is it supposed to do? By the way, a quick google search of, "nspredicateeditor example" yields a very helpful first result ... -- I.S. _

Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread I. Savant
On Sep 29, 2009, at 12:53 PM, Oftenwrong Soong wrote: IIUC, what you're saying is that NSPredicate is used as a filter. Is that correct? Well, it's more of a (unit of a) query. You can create compound predicates, etc. to build a more complex query. If so, is Predicate Editor (in IB) r

Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread Oftenwrong Soong
Hi all, IIUC, what you're saying is that NSPredicate is used as a filter. Is that correct? If so, is Predicate Editor (in IB) related in some way? And if so, what is it supposed to do? Honestly I could never understand the docs on this particular control. :) Thanks, Soong On Sept 29, 2009 a

Re: Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread I. Savant
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

Efficient searching of an NSArray of NSDictionary

2009-09-29 Thread Pascal Harris
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