Name

NSPropertyListSerialization — Mac OS X 10.2

Synopsis

This class provides functionality to convert organizations of property list objects (NSArray, NSDictionary, NSData, NSString, and NSNumber) to and from XML or binary data formats.

image with no caption

@interface NSPropertyListSerialization : NSObject
                                  // Class Methods
   + (NSData *)dataFromPropertyList:(id)plist 
                                 format:(NSPropertyListFormat)format
                                 errorDescription:(NSString **)errorString;
   + (BOOL)propertyList:(id)plist 
                                 isValidForFormat:(NSPropertyListFormat)format;
   + (id)propertyListFromData:(NSData *)data 
                                 mutabilityOption:(NSPropertyListMutabilityOptions)opt
                                 format:(NSPropertyListFormat *)format 
                                 errorDescription:(NSString **)errorString;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.