views:

35

answers:

1

I can't seem to find any discussion about this, but I have this question after I watched session 137 of WWDC about core data optimization.

So, Melissa Turner advise to use <= and < instead of BEGINSWITH, but how do I do that with predicate substitution variables or formatted predicate?

Let's use this example:

@"franc" <= searchName AND searchName < @"frand"

What if @"franc" is the search keyword variable that is obtained from the search bar text input?

How do I increment the suffix or the overall NSString variable?

+1  A: 

Apple posted some sample code that should help.

Amorya
Okay, that would be the normalizeString and upperBoundSearchString.
Jesse Armand