Instance Method

setValue:forAttribute:error:

Sets the values of an attribute of the record.

Declaration

- (BOOL)setValue:(id)inValueOrValues forAttribute:(ODAttributeType)inAttribute error:(NSError **)outError;

Parameters

inValueOrValues

The value or values. Can be of type NSString or NSData, or an NSArray with elements of both types.

inAttribute

The attribute.

outError

An error reference for error details. Can be nil.

Return Value

YES if the values are successfully set; otherwise, NO.

Discussion

See Also

Managing Record Attributes

- addValue:toAttribute:error:

Adds a value to an attribute of the record.

- recordDetailsForAttributes:error:

Returns a dictionary of attributes with their respective values.

recordName

The official name of the record.

recordType

The record’s type.

- removeValuesForAttribute:error:

Removes all values from an attribute of the record.

- removeValue:fromAttribute:error:

Removes a value from an attribute of the record.

- synchronizeAndReturnError:

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

- valuesForAttribute:error:

Returns the values of an attribute of the record.