Contents

value(for:)

Returns the value for the given property.

Declaration

func value(for prop: NSPropertyDescription) -> Any?

Parameters

  • prop:

    A property description for one of the properties in the receiver.

Return Value

The value for the property specified by prop. May return an instance of NSNull for to-one relationships.

Discussion

If a relationship is nil, you should create a new value by invoking newValueForRelationship:forObjectWithID:withContext:error: on the NSPersistentStore object.

See Also

Managing Node Data