Function

ODRecordAddValue(_:_:_:_:)

Adds a value to an attribute of a record.

Declaration

func ODRecordAddValue(_ record: ODRecordRef!, _ attribute: String!, _ value: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

inRecord

The record.

inAttribute

The attribute.

inValue

The value to add to the attribute. Can be a CFStringRef object or a CFDataRef object.

outError

An error reference for error details. Can be NULL.

Return Value

true if the value is successfully added; false otherwise.

See Also

Working with Records

func ODRecordGetTypeID() -> CFTypeID

Returns the type ID for a record.

func ODRecordSynchronize(ODRecordRef!, UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Synchronizes a record with the directory to get current data and commit changes.