NSSerializer Class Reference (Not Recommended)

Inherits from
Conforms to
Deprecated in Mac OS X v10.2.
Companion guide
Archives and Serializations
Declared in


NSSerializer is obsolete and has been deprecated. Instead use NSPropertyListSerialization.

The 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: NSDictionary, NSArray, NSString, NSData.) The 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.

The 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 serializeDataAt:ofObjCType:context: and deserializeDataAt:ofObjCType:atCursor:context:, declared by NSData and 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.


Serializing a Property List