Manual Pages for UNIX Darwin command on man plist
MyWebUniversity

Manual Pages for UNIX Darwin command on man plist

PLIST(5) BSD File Formats Manual PLIST(5)

NAME

pplliisstt - property list format

SYNOPSIS

pplliisstt

DESCRIPTION

Property lists organize data into named values and lists of values using several Core Foundation types: CFString, CFNumber, CFBoolean, CFDate,

CFData, CFArray, and CFDictionary. These types give you the means to pro-

duce data that is meaningfully structured, transportable, storable, and

accessible, but still as efficient as possible. The property list pro-

gramming interface allows you to convert hierarchically structured combi-

nations of these basic types to and from standard XML. The XML data can

be saved to disk and later used to reconstruct the original Core Founda-

tion objects. Note that property lists should be used for data that con-

sists primarily of strings and numbers because they are very inefficient when used with large blocks of binary data. PPRROOPPEERRTTYY LLIISSTT SSTTRRUUCCTTUURREE AANNDD CCOONNTTEENNTTSS Property lists are constructed from the basic Core Foundation types CFString, CFNumber, CFBoolean, CFDate, and CFData. To build a complex

data structure out of these basic types, you put them inside a CFDic-

tionary or CFArray. To simplify programming with property lists, any of the property list types can also be referred to using a reference of type CFPropertyListRef.

In a CFDictionary, data is structured as key-value pairs, where each key

is a string and the key's value can be a CFString, a CFNumber, a CFBoolean, a CFDate, a CFData, a CFArray, or another CFDictionary. When using CFDictionary as a property list, all keys must be strings. In a CFArray, data is structured as an ordered collection of objects that can be accessed by index. In a property list, a CFArray can contain any

of the basic property list types, as well as CFDictionary and other CFAr-

ray objects. PPRROOPPEERRTTYY LLIISSTT XXMMLL TTAAGGSS When property lists convert a collection of Core Foundation objects into an XML property list, it wraps the property list using the document type tag <>. The other tags used for the Core Foundation data types are listed in the table below: CCoorree FFoouunnddaattiioonn TTyyppeess wwiitthh XXMMLL EEqquuiivvaalleennttss CF type XML tag CCFFSSttrriinngg CCFFNNuummbbeerr or CCFFDDaattee CCFFBBoooolleeaann or CCFFDDaattaa CCFFAArrrraayy CCFFDDiiccttiioonnaarryy When encoding the contents of a CFDictionary, each member is encoded by placing the dictionary key in a tag and immediately following it with the corresponding value in the appropriate tag from the table above.

See EXAMPLES below for an example XML data generated from a property

list. The XML data format is documented here strictly for help in understanding property lists and as a debugging aid. These tags may change in future releases so you shouldn't rely on them directly. You should not edit the XML data by hand unless you are very familiar with XML syntax and the

format of property lists. If you want to modify the contents of a prop-

erty list saved on disk as XML data, use the Property List Editor appli-

cation. More complete documentation can be found on disk at

/Developer/Documentation/CoreFoundation/ProgrammingTopics/CFProp-

ertyLists/CFPropertyLists.html or online at

http://developer.apple.com/documentation/CoreFoundation/Concep-

tual/CFPropertyLists/index.html EEXXAAMMPPLLEESS

"http://www.apple.com/DTDs/PropertyList-1.0.dtd">

Year Of Birth 1965 Pets Names Picture PEKBpYGlmYFCPA== City of Birth Springfield Name John Doe Kids Names John Kyra

SEE ALSO

plutil(1) Mac OS X July 9, 2003 Mac OS X




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™