Predicate on a string length?
Predicate on a string length?
- Subject: Predicate on a string length?
- From: email@hidden
- Date: Wed, 20 Jun 2007 11:29:35 -0700
For a Core Data app, I'm trying to create a predicate so that it can
return NSStrings that are a specified length.
I've tried a few variations with no luck. This is one of the
variations:
The property name of the string is "text".
NSNumber* theNum = [NSNumber numberWithInt:5];
[NSPredicate predicateWithFormat:@"(text.length <= %@)" , theNum];
That doesn't work. Is what I want possible? If so, any suggestions?
Thanks!
-Bill
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden