Instance Property

allowsKeyedCoding

A Boolean value that indicates whether the receiver supports keyed coding of objects.

Declaration

var allowsKeyedCoding: Bool { get }

Discussion

false by default. Concrete subclasses that support keyed coding, such as NSKeyedArchiver, need to override this property to return true.

See Also

Inspecting a Coder

func containsValue(forKey: String) -> Bool

Returns a Boolean value that indicates whether an encoded value is available for a string.

var decodingFailurePolicy: NSCoder.DecodingFailurePolicy

The action the coder should take when decoding fails.

enum NSCoder.DecodingFailurePolicy

Policies describing the action the coder should take when encountering decode failures.