Class

PropertyListSerialization

An object that converts between a property list and one of several serialized representations.

Overview

The PropertyListSerialization class provides methods that convert a property list to and from several serialized formats. A property list is itself an array or dictionary that contains only NSData, NSString, NSArray, NSDictionary, NSDate, and NSNumber objects.

Property list objects are toll-free bridged with their respective Core Foundation types (CFData, CFString, and so on). See Toll-Free Bridging for more information on toll-free bridging.

Topics

Validating a Property List

class func propertyList(Any, isValidFor: PropertyListSerialization.PropertyListFormat)

Returns a Boolean value that indicates whether a given property list is valid for a given format.

Constants

struct PropertyListSerialization.MutabilityOptions

These constants specify mutability options in property lists.

enum PropertyListSerialization.PropertyListFormat

These constants are used to specify a property list serialization format.

Error Codes

var NSPropertyListReadCorruptError: Int

An error was encountered while parsing the property list.

var NSPropertyListReadUnknownVersionError: Int

The version number of the property list is unable to be determined.

var NSPropertyListReadStreamError: Int

An stream error was encountered while reading the property list.

var NSPropertyListWriteStreamError: Int

An stream error was encountered while writing the property list.

var NSPropertyListErrorMinimum: Int

Marks beginning of the range of error codes reserved for property list errors.

var NSPropertyListErrorMaximum: Int

Marks end of the range of error codes reserved for property list errors.

Relationships

Inherits From

Conforms To

See Also

Property Lists

class PropertyListEncoder

An object that encodes instances of data types to a property list.

class PropertyListDecoder

An object that decodes instances of data types from a property list.