Instance Method

setValue(_:forCustomKey:)

Sets the value for a custom attribute key.

Declaration

func setValue(_ value: NSSecureCoding?, forCustomKey key: CSCustomAttributeKey)

Parameters

value

The value of the custom attribute. Values must be common property list types, such as NSString, NSNumber, NSNull, NSData, or NSDate, or an array of property list types.

key

The custom attribute key.

See Also

Working with Custom Attributes

func value(forCustomKey: CSCustomAttributeKey) -> NSSecureCoding?

Returns the value associated with the specified custom attribute key.