Dockyard > Objective-C Classes > IsEqualTransformer

IsEqualTransformer

Class Description


Compares the input value to the object given during creation. The programmer chooses at instantiation whether or not to test for equality or inequality.

Methods


- initWithObject:

- initWithObject:trueOnEqual:

Method Detail


initWithObject:

- (id)initWithObject:(id)obj

Invokes initWithObject:trueOnEqual: with a shouldBeTrue value of YES.

initWithObject:trueOnEqual:

- (id)initWithObject:(id)obj trueOnEqual:(BOOL)shouldBeTrue

Initializes and returns a new transformer, which compares values with obj and returns whether or not they are equal. If shouldBeTrue is YES, transformedValue: will return YES when the objects are equal. If shouldBeTrue is NO, transformedValue: will return YES when the objects are not equal. This is the designated initializer.

This page was generated with DocYouMeant, a program created by Belkadan Software

Valid XHTML 1.0! Valid CSS!