Contents

propertyListFromData(_:mutabilityOption:format:errorDescription:)

This method is deprecated. Use Data(frompropertylist:format:options:) instead.

Declaration

class func propertyListFromData(_ data: Data, mutabilityOption opt: PropertyListSerialization.MutabilityOptions = [], format: UnsafeMutablePointer<PropertyListSerialization.PropertyListFormat>?, errorDescription errorString: UnsafeMutablePointer<NSString?>?) -> Any?

Parameters

  • data:

    A data object containing a serialized property list.

  • opt:

    The options used to create the property list. For possible values, see Mutabilityoptions.

  • format:

    If the property list is valid, upon return contains the format. format can be nil, in which case the property list format is not returned. For possible values, see Propertylistformat.

  • errorString:

    Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error.

Return Value

A property list object corresponding to the representation in data. If data is not in a supported format, returns nil.

See Also

Related Documentation

Obsolete Methods