Skip to content

[SR-10321] Expose support in PropertyListEncoder and PropertyListDecoder for converting to/from a plist instead of Data #3494

Open
@tjw

Description

@tjw
Previous ID SR-10321
Radar rdar://problem/35469406
Original Reporter @tjw
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Codable
Assignee bendjones (JIRA)
Priority Medium

md5: 6a6e7c98fd73328b0660b63bb80dad10

Issue 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions