< Previous PageNext Page > Hide TOC

Deprecated NSDeserializer Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.2

deserializePropertyListFromData:atCursor:mutableContainers:

Returns a property list object from a given location in a given serialized representation of a property list. (Deprecated in Mac OS X v10.2.)

+ (id)deserializePropertyListFromData:(NSData *)data atCursor:(unsigned *)cursor mutableContainers:(BOOL)mutable

Parameters
data

A serialized representation of a property list.

cursor

mutable

If YES and the property list object is a dictionary or an array, the recomposed object is made mutable

Return Value

A property list object corresponding to the representation in data at the location cursor. Returns nil if the property list object is not valid for property lists.

Availability
Declared In
NSSerialization.h

deserializePropertyListFromData:mutableContainers:

Returns a property list object from given serialized data, optionally making the list elements mutable. (Deprecated in Mac OS X v10.2.)

+ (id)deserializePropertyListFromData:(NSData *)serialization mutableContainers:(BOOL)mutable

Parameters
serialization

A serialized representation of a property list.

mutable

If YES and the property list object is a dictionary or an array, the recomposed object is made mutable.

Return Value

A property list object corresponding to the representation in serialization, or nil if serialization does not represent a property list.

Availability
Declared In
NSSerialization.h

deserializePropertyListLazilyFromData:atCursor:length:mutableContainers:

Returns a property list from a given location in a given serialized representation of a property list. (Deprecated in Mac OS X v10.2.)

+ (id)deserializePropertyListLazilyFromData:(NSData *)data atCursor:(unsigned *)cursor length:(unsigned)length mutableContainers:(BOOL)mutable

Parameters
data

A serialized representation of a property list.

cursor

The cursor location.

length

The number of bytes to read.

mutable

If YES and the object is a dictionary or an array, the recomposed object is made mutable.

Return Value

A property list from data at location cursor, or nil if data does not represent a property list.

Discussion

The deserialization proceeds lazily—that is, if the data at cursor has a length greater than length, a proxy is substituted for the actual property list as long as the constituent objects of that property list are not accessed.

Availability
Declared In
NSSerialization.h

< Previous PageNext Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.