Can anyone help me add children to a plist?
I think I want to record an index of rows from the plist and then state which index row to write the key too. I'm not sure how to say if the key will be a string, dictionary or array.
The following is code from another question on adding a key to root.
NSString *path = @"path/to/some/file";
NSMutableDictionary *plist = [[NSDictionary dictionaryWithContentsOfFile:path] mutableCopy];
[plist setObject:@"foo" forKey:@"aKey"];
[plist writeToFile:path atomically:YES];
[plist release];
Any help would be extremely appreciated :)