Methods


stringForObjectValue:
NSFormatter method for converting values to strings.
getObjectValue:forString:errorDescription:
NSFormatter method for validating input strings and converting them to final values.

getObjectValue:forString:errorDescription:

NSFormatter method for validating input strings and converting them to final values.
- ( BOOL ) getObjectValue:
        (id *) obj forString:
        (NSString *) string errorDescription:
        (NSString **) error;

NSFormatter method for validating input strings and converting them to final values. MORESyntaxFormatter attempts to create a MORegularExpression using the input string as the expression string. If it succeeds, the resulting MORegularExpression is the value, otherwise, the input is not valid.

Parameter Descriptions
obj
A pointer to the output MORegularExpression.
string
The input string to be validated and converted.
error
A pointer to a pointer to an error string describing why the string was not valid.
method result
YES if the string can be compiled into a valid regular expression, NO if not. If YES, then obj will be filled in with a pointer to the resulting MORegularExpression. If NO, then error will be filled in with a pointer to an error string.

stringForObjectValue:

NSFormatter method for converting values to strings.
- ( NSString *) stringForObjectValue:
        (id ) obj;

NSFormatter method for converting values to strings. MORESyntaxFormatter accepts MORegularExpressions as values and converts them to their expression strings.

Parameter Descriptions
obj
The MORegularExpression object to be converted to a string.
method result
The expression string of the MORegularExpression value object.

(Last Updated 3/20/2005)