• 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
Navigating property lists using paths?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Navigating property lists using paths?


  • Subject: Navigating property lists using paths?
  • From: Scott Andrew <email@hidden>
  • Date: Sat, 21 Jun 2003 23:49:56 -0700

I have a question. I have to navigate deep into a property list (about
9 - 10 levels). Can do this with a path string? Similar to
"\foo\bar\i\am".. What class would I want to do this with? Right now i
am create a dictionary for each level.

That brings one more question.. If i the following two lines (id don't
but would like to)

-(void) workWithPropertiesFile(NSString path)
{

NSDictionary* root = [NSDictionary dictionaryWithContentsOfFile: path];
NSDictionary* item = [root objectForKey:@"foo"];
.. do some work with foo;
item = [rooot objectForKey:@"bar"];
}

Does the item dictionary get cleaned up properly?

Scott Andrew
_______________________________________________
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: Navigating property lists using paths?
      • From: Chris Hanson <email@hidden>
    • Re: Navigating property lists using paths?
      • From: Daryn <email@hidden>
  • Prev by Date: Action in TextFields
  • Next by Date: Re: NSToolbarItem Menu
  • Previous by thread: Re: Action in TextFields
  • Next by thread: Re: Navigating property lists using paths?
  • Index(es):
    • Date
    • Thread