Type Method

propertyListFromData:mutabilityOption:format:errorDescription:

This method is deprecated. Use dataWithPropertyList:format:options:error: instead.

Declaration

+ (id)propertyListFromData:(NSData *)data mutabilityOption:(NSPropertyListMutabilityOptions)opt format:(NSPropertyListFormat *)format errorDescription:(out NSString * _Nullable *)errorString;

Parameters

data

A data object containing a serialized property list.

opt

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

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 NSPropertyListFormat.

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

Obsolete Methods

+ dataFromPropertyList:format:errorDescription:

This method is obsolete and will be deprecated soon.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software