O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required