iDevGames Forums

Full Version: Newbie here.. plist help pls!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you populate several labels from a plist file? Lets say i have 3 labels, name/number/description, and my plist has 1 item with 3 subitems. How do I display those 3 subitems in the labels.

Thank you
id plist = [NSDictionary dictionaryWithContentsOfFile:@“path/to/plist”];
[nameField setStringValue:plist[@“name”]];
[numberField setDoubleValue:[plist[@“number”] doubleValue]];
[descriptionField setStringValue:plist[@“description”]];

or something. you didn’t provide any useful information.
Reference URL's