I have an NSArray of NSDictionaries.
The dictionaries has keys like this: color, number, code, description and size.
Now I have a key and I want to locate that dictionary inside the array, some magic command like:
NSDictionary *oneDict = [get a dictionary from myArray where "code" is equal to "32"];
code is a key, 32 a value.
I know how to enumerate the array and search one by one every dict, but I know objective-c is a bag full of "tricks" and a "magic command" may exist to extract surgically this dictionary from the array in one line.
Any clues?