Instance Method

shouldArchiveValue(forKey:)

Specifies whether the value of the property for a given key is archived.

Declaration

func shouldArchiveValue(forKey key: String) -> Bool

Parameters

key

The name of one of the receiver’s properties.

Return Value

true if the specified property should be archived, otherwise false.

Discussion

Called by the object's implementation of encodeWithCoder:. The object must implement keyed archiving.

The default implementation returns true.

See Also