Hi all,
I wonder how the "aces" would approach this issue.
I have a class which has 3 ivars. I want to store each object with it's three values in a dictionary, but most importantly, I want to be able to search the dictionary for a specific element of the object in an efficient way.
So, I have tried the method "allKeys", then iterate through each "key" of the returned array, to examine each object for the specific element (using the keys to query the dictionary)....but this seems really inefficient.
Wonder how you would approach this?
Thanks
I wonder how the "aces" would approach this issue.
I have a class which has 3 ivars. I want to store each object with it's three values in a dictionary, but most importantly, I want to be able to search the dictionary for a specific element of the object in an efficient way.
So, I have tried the method "allKeys", then iterate through each "key" of the returned array, to examine each object for the specific element (using the keys to query the dictionary)....but this seems really inefficient.
Wonder how you would approach this?
Thanks