Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
NSSerializer Class Reference (Not Recommended)
Deprecated in Mac OS X v10.2.
Archives and Serializations
NSSerializer is obsolete and has been deprecated. Instead use
NSSerializer class provides a mechanism for creating an abstract representation of a property list. (In Cocoa, property lists are defined to be—and to contain—objects of these classes:
NSSerializer class stores this representation in an NSData object using an architecture-independent format, so that property lists can be used with distributed applications. NSSerializer’s companion class
NSDeserializer declares methods that take the representation and recreate the property list in memory.
NSSerializer class object provides the interface to the serialization process; you don’t create instances of
NSSerializer. You might subclass
NSSerializer to modify the representation it creates, for example, to encrypt the data or add authentication information.
Other types of data besides property lists can be serialized using
deserializeDataAt:ofObjCType:atCursor:context:, declared by
NSMutableData, allowing these types to be represented in an architecture-independent format. Furthermore, the
NSObjCTypeSerializationCallBack protocol allows you to serialize and deserialize objects that are not property lists.