Searching dictionaries
Searching dictionaries
- Subject: Searching dictionaries
- From: April Gendill <email@hidden>
- Date: Fri, 10 Oct 2003 20:37:14 -0700
I have a data structure. The root is a dictionary which contains
string items and other dictionaries (possibly nested). I tried
enumerating the dictionary but I cannot remove an item or other wise
use it because the enumerator only provides either a string or
dictionary object.
I tried [theDict allKeysForObject:theObject];
"theObject" is a selected item from a table. Am I not understanding
what "The Object" is suppose to be? Because when I NSLog(@"%@",[theDict
allKeysForObject:theObject]); The array is empty even though I can log
the object and the dictionary and they both show an object by the same
name. Basically I cannot step through a nested dictionary and remove
either a string or dictionary because I guess I do not understand how
to reference the data.
April.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.