A formatter that validates input strings to ensure that they are valid regular expressions.
A MORESyntaxFormatter attempts to compile its input strings as regular expressions. If they compile then they are valid input and the resulting MORegularExpression is the "value", otherwise the string is not valid input.
getObjectValue:forString:errorDescription: |
- ( 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.
- 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.
stringForObjectValue: |
- ( NSString *) stringForObjectValue: (id ) obj;
NSFormatter method for converting values to strings. MORESyntaxFormatter accepts MORegularExpressions as values and converts them to their expression strings.
- obj
- The MORegularExpression object to be converted to a string.
(Last Updated 3/20/2005)