From c2d44f800aa70f0969905b679beb179e11ea6c5a Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Mon, 17 Feb 2020 12:02:20 +0800 Subject: [PATCH 1/2] NSPropertyList.h: mention base64 encoding Base64 parsing is supported since 3f2fa9ddfe507b68fd92843c345c7994b1c1adc8 and it is the default since 9aa5d4cd0403c2d990262c15884181da5d1e32ae. We should definitely document that. --- Headers/Foundation/NSPropertyList.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Headers/Foundation/NSPropertyList.h b/Headers/Foundation/NSPropertyList.h index 73d1e0f2d..282150a04 100644 --- a/Headers/Foundation/NSPropertyList.h +++ b/Headers/Foundation/NSPropertyList.h @@ -117,12 +117,16 @@ typedef NSUInteger NSPropertyListFormat; * * [NSData] * - * An array is represented as a series of pairs of hexadecimal characters - * (each pair representing a byte of data) enclosed in angle brackets. - * Spaces are ignored). + * A data object is represented as a series of pairs of hexadecimal + * characters (each pair representing a byte of data) enclosed in angle + * brackets. (Spaces are ignored). * * < 54637374 696D67 > * + * Base64 can be used since Base 1.24.9: + * + * <[VGNzdGltZw==]> + * * In XML format, a data object is an element whose name is * data and whose content is a stream of base64 encoded bytes. * From f63f44907d8da2eb2c4c2172b256ef2ad745c6e1 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Mon, 17 Feb 2020 12:31:42 +0800 Subject: [PATCH 2/2] Update XML dict documentation --- Headers/Foundation/NSPropertyList.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Headers/Foundation/NSPropertyList.h b/Headers/Foundation/NSPropertyList.h index 282150a04..07665a507 100644 --- a/Headers/Foundation/NSPropertyList.h +++ b/Headers/Foundation/NSPropertyList.h @@ -164,13 +164,13 @@ typedef NSUInteger NSPropertyListFormat; * } * * In XML format, a dictionary is an element whose name is - * dictionary and whose content consists of pairs of - * strings and other property list objects. + * dict and whose content consists of pairs of + * string key and other property list objects. * - * <dictionary> - * <string>key1</string> + * <dict> + * <key>key1</key> * <string>value1</string> - * </dictionary> + * </dict> * * * [NSNumber]