Uploaded image for project: 'Swift'
  1. Swift
  2. SR-10321

Expose support in PropertyListEncoder and PropertyListDecoder for converting to/from a plist instead of Data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Foundation
    • Labels:

      Description

      PropertyListEncoder should have an `encode` variant that produces the non-serialized property list, and PropertyListDecoder should have a `decode` variant that takes as input a n already-deserialized property list.

      This would allow better reading/writing UserDefaults values and allow UserDefaults to do the serialization operations, and importantly, allowing the command line tool `defaults` `read` option to produce human-readable output and the `find` option to actually be able to see the property list contents.

        Attachments

          Activity

            People

            • Assignee:
              bendjones Ben D. Jones
              Reporter:
              tjw Timothy Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: