Navigating property lists using paths?
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.