Type Method

propertyListWithStream:options:format:error:

Creates and returns a property list by reading from the specified stream.

Declaration

+ (id)propertyListWithStream:(NSInputStream *)stream options:(NSPropertyListReadOptions)opt format:(NSPropertyListFormat *)format error:(out NSError * _Nullable *)error;

Parameters

stream

An NSStream object. The stream should be open and configured for reading.

opt

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

format

Upon return, contains the format that the property list was stored in. Pass nil if you do not need to know the format.

error

If the method does not complete successfully, upon return contains an NSError object that describes the problem.

Return Value

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

Discussion

See Also

Deserializing a Property List

+ propertyListWithData:options:format:error:

Creates and returns a property list from the specified data.

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