Type Method

setValueTransformer:forName:

Registers the provided value transformer with a given identifier.

Declaration

+ (void)setValueTransformer:(NSValueTransformer *)transformer forName:(NSValueTransformerName)name;

Parameters

transformer

The transformer to register.

name

The name for transformer.

See Also

Using the Name-Based Registry

+ valueTransformerForName:

Returns the value transformer identified by a given identifier.

+ valueTransformerNames

Returns an array of all the registered value transformers.

NSValueTransformerName

Named value transformers defined by NSValueTransformer.