Instance Method


Returns a Boolean indicating whether the value of the specified key should be archived.


func shouldArchiveValue(forKey key: String) -> Bool



The name of one of the receiver’s properties.

Return Value

true if the specified property should be archived or false if it should not.


The default implementation returns true.

See Also

Key-Value Coding Extensions

class func defaultValue(forKey: String) -> Any?

Specifies the default value associated with the specified key.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software