Case insensitive match

This commit is contained in:
Matthias Neeracher 2011-08-13 19:08:23 +02:00
parent 7b527121b3
commit 03c270a538

View File

@ -113,7 +113,7 @@
{
NSManagedObjectContext *moc = [self managedObjectContext];
NSFetchRequest * fetch = [NSFetchRequest fetchRequestWithEntityName:@"MATagDescription"];
[fetch setPredicate:[NSPredicate predicateWithFormat:@"name BEGINSWITH %@", prefix]];
[fetch setPredicate:[NSPredicate predicateWithFormat:@"name BEGINSWITH[cd] %@", prefix]];
NSArray * descs = [moc executeFetchRequest:fetch error:nil];
NSMutableArray * names = [NSMutableArray arrayWithCapacity:[descs count]];