Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjw opened this issue Apr 5, 2019 · 3 comments

Comments

@tjw
Copy link

tjw commented Apr 5, 2019

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.

@belkadan
Copy link

belkadan commented Apr 8, 2019

bendjones (JIRA User), I know Apple has a Radar for this, but maybe this is the first JIRA?

@swift-ci
Copy link
Contributor

swift-ci commented Apr 8, 2019

Comment by Ben D. Jones (JIRA)

Possible let me look around...

@swift-ci
Copy link
Contributor

swift-ci commented Apr 9, 2019

Comment by Ben D. Jones (JIRA)

@belkadan associated the radar

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants