30 Property Lists
Sometimes you need a file format that can be read by both computers and people. For example, let’s say that you want to keep a description of your stock portfolio in a file. As you add new stocks, it would be nice to be able to edit that file easily by hand. But, it might also be handy for one of your programs to be able to read it. When facing this problem, most Objective-C programmers use a property list.
A property list is a combination of any of the following things:
-
NSArray
-
NSDictionary
-
NSString
-
NSData
-
NSDate
-
NSNumber (integer, float, or Boolean)
For example, an array of dictionaries with string keys and date objects is a property list (or just a “P-list”).
Reading and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access