• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Searching dictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Searching dictionaries
      • From: Bill Cheeseman <email@hidden>
    • Re: Searching dictionaries
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: Searching dictionaries
      • From: James McConnell <email@hidden>
  • Prev by Date: Re: Sending data to libxslt
  • Next by Date: Re: Authentication: Please critique my solution.
  • Previous by thread: Re: Sending data to libxslt
  • Next by thread: Re: Searching dictionaries
  • Index(es):
    • Date
    • Thread