Skip to content

[Documentation] Add doc comments for NSCoder #837

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

Merged
merged 2 commits into from
Jan 25, 2017

Conversation

broadwaylamb
Copy link
Contributor

This pull request adds documentation comments for the following public/open declarations:

Classes:

  • NSCoder
    • encodeValue(ofObjCType:at:)
    • encode(_:) (Data)
    • decodeValue(ofObjCType:at:)
    • decodeData()
    • version(forClassName:)
    • decodeObject(of:forKey:) (.Type, String)
    • decodeObject(of:forKey:) ([AnyClass]?, String)
    • decodeTopLevelObject()
    • decodeTopLevelObject(forKey:)
    • decodeTopLevelObject(of:forKey:) (.Type, String)
    • decodeTopLevelObject(of:forKey:) ([AnyClass], String)
    • encode(_:) (Any?)
    • encodeRootObject(_:)
    • encodeBycopyObject(_:)
    • encodeByrefObject(_:)
    • encodeConditionalObject(_:)
    • encodeArray(ofObjCType:count:at:)
    • encodeBytes(_:length:)
    • decodeObject()
    • decodeArray(ofObjCType:count:at:)
    • encodePropertyList(_:)
    • decodePropertyList()
    • systemVersion
    • allowsKeyedCoding
    • encode(_:forKey:) (Any?, String)
    • encodeConditionalObject(_:forKey:)
    • encode(_:forKey:) (Bool, String)
    • encode(_:forKey:) (Int32, String)
    • encode(_:forKey:) (Int64, String)
    • encode(_:forKey:) (Float, String)
    • encode(_:forKey:) (Double, String)
    • encodeBytes(_:length:forKey:)
    • containsValue(forKey:)
    • decodeObject(forKey:)
    • decodeBool(forKey:)
    • decodeCInt(forKey:)
    • decodeInt32(forKey:)
    • decodeInt64(forKey:)
    • decodeFloat(forKey:)
    • decodeDouble(forKey:)
    • withDecodedUnsafeBufferPointer(forKey:body:)
    • encode(_:forKey:) (Int, String)
    • decodeInteger(forKey:)
    • requiresSecureCoding
    • decodePropertyListForKey(_:)
    • allowedClasses
    • failWithError(_:)
    • decodingFailurePolicy
    • error

Protocols:

  • NSCoding
    • encode(with:)
    • init(coder:)
  • NSSecureCoding
    • supportsSecureCoding

Enums:

  • NSCoder.DecodingFailurePolicy
    • setErrorAndReturn

All the comments have been carefully reviewed. The terms referring to Objective-C semantics
have been substituted with ones more appropriate for Swift semantics (e. g. "receiver" → "instance" etc.).

Jazzy Percentage of documented declarations in Foundation
Before 27%
After 29%

@parkera
Copy link
Contributor

parkera commented Jan 25, 2017

@swift-ci test and merge

@swift-ci swift-ci merged commit 5bc8ec7 into swiftlang:master Jan 25, 2017
@broadwaylamb broadwaylamb deleted the nscoder-doc branch January 25, 2017 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants