Hi all,
I have an array. Each array entry is a dictionary. Each dictionary has
two key/value pairs (all are strings).
Now I get from somewhere else the value (a string) corresponding to
one of the keys. It's exactly the same string, content-wise (not
address-wise).
What I need: a reference/pointer to THAT dictionary inside the array
which contains this string as the value of the key (I know what key it
is).
How would I do that?
My knowledge is: to get an array's entry I just have the
objectAtIndex: method. But then I'd need the index where the
dictionary I'm looking for is. How would I get the index without, of
course, iterating through all the array's entries and looking at every
dictionary and comparing my given value with all the values inside the
dictionaries?
Thanks a LOT guys!!
Stefan.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]