Type Method

dataFromPropertyList:format:errorDescription:

This method is obsolete and will be deprecated soon.

Declaration

+ (NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)format errorDescription:(out NSString * _Nullable *)errorString;

Parameters

plist

A property list object.

format

A property list format. 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

An NSData object containing plist in the format specified by format.

Discussion

This method is obsolete and will be deprecated soon. Use dataWithPropertyList:format:options:error: instead.

See Also