Class CFPropertyList::List
In: rbCFPropertyList.rb
Parent: Object

Methods

Constants

FORMAT_BINARY = 1   Format constant for binary format
FORMAT_XML = 2   Format constant for XML format
FORMAT_AUTO = 0   Format constant for automatic format recognizing

Attributes

filename  [RW]  Path of PropertyList
format  [RW]  Path of PropertyList
value  [RW]  the root value in the plist file

Public Class methods

Public Instance methods

Read a plist file

file = nil:The filename of the file to read. If nil, use filename instance variable
format = nil:The format of the plist file. Auto-detect if nil

read a binary plist file

filename = nil:The filename to read from; if nil, read from the file defined by instance variable filename

load a plist from a binary string

str:The string containing the plist

load a plist from a string

str = nil:The string containing the plist
format = nil:The format of the plist

Load an XML PropertyList

filename = nil:The filename to read from; if nil, read from the file defined by instance variable filename

load a plist from a XML string

str:The string containing the plist

Serialize CFPropertyList object to specified format and write it to file

file = nil:The filename of the file to write to. Uses filename instance variable if nil
format = nil:The format to save in. Uses format instance variable if nil

convert plist to string

format = List::FORMAT_BINARY:The format to save the plist
opts={}:Pass parser options

[Validate]