Structure

NSValueTransformerName

Named value transformers defined by NSValueTransformer.

Declaration

struct NSValueTransformerName

Topics

Type Properties

static let isNilTransformerName: NSValueTransformerName

This value transformer returns true if the value is nil.

static let isNotNilTransformerName: NSValueTransformerName

This value transformer returns true if the value is non-nil.

static let keyedUnarchiveFromDataTransformerName: NSValueTransformerName

This value transformer returns an object created by attempting to unarchive the data in the NSData object passed as the value. The archived object must be created using keyed archiving in order to be unarchived and archived with this transformer.

Deprecated
static let negateBooleanTransformerName: NSValueTransformerName

This value transformer negates a boolean value, transforming true to false and false to true.

static let unarchiveFromDataTransformerName: NSValueTransformerName

This value transformer returns an object created by attempting to unarchive the data in the NSData object passed as the value.

Deprecated

Relationships

See Also

Using the Name-Based Registry

class func setValueTransformer(ValueTransformer?, forName: NSValueTransformerName)

Registers the provided value transformer with a given identifier.

init?(forName: NSValueTransformerName)

Returns the value transformer identified by a given identifier.

class func valueTransformerNames() -> [NSValueTransformerName]

Returns an array of all the registered value transformers.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software