FROM : Chris Hanson
DATE : Fri Nov 30 21:47:25 2007
On Nov 30, 2007, at 12:30 PM, Richard Wolf wrote:
> But what I can't find is a way to do this:
>
> BOOL result = [*ioValue matchesRegularExpression:@"[A-Z0-9]{32,32}"];
NSPredicate has a matches-regular-expression operator.
That's how the validation conditions you define in your model are
actually represented at runtime; see the documentation for
NSPropertyDescription's validationPredicates property.
-- Chris
DATE : Fri Nov 30 21:47:25 2007
On Nov 30, 2007, at 12:30 PM, Richard Wolf wrote:
> But what I can't find is a way to do this:
>
> BOOL result = [*ioValue matchesRegularExpression:@"[A-Z0-9]{32,32}"];
NSPredicate has a matches-regular-expression operator.
That's how the validation conditions you define in your model are
actually represented at runtime; see the documentation for
NSPropertyDescription's validationPredicates property.
-- Chris
| Related mails | Author | Date |
|---|---|---|
| Richard Wolf | Nov 30, 03:33 | |
| mmalc crawford | Nov 30, 11:24 | |
| Richard Wolf | Nov 30, 21:30 | |
| Chris Hanson | Nov 30, 21:47 | |
| Richard Wolf | Nov 30, 22:09 |






Cocoa mail archive

