Contents

setValue(_:forKey:)

Sets the value for the given key.

Declaration

func setValue(_ value: Any?, forKey key: String)

Parameters

  • value:

    The value for the property identified by key.

  • key:

    The name of a property.

Discussion

The default implementation forwards the request to the propertyCache dictionary if key matches a property name of the entity for this cache node. If key does not represent a property, the standard setValue(_:forKey:) implementation is used.

See Also

Managing Node Data