Newbie here.. plist help pls!!!

Nibbie
Posts: 1
Joined: 2013.07
Post: #1
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
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Code:
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How do you sava encrypted data or plist? riruilo 14 8,545 Apr 21, 2010 05:52 AM
Last Post: alerus