From 03c270a538dbd243d2248611435c7bea570746d6 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 13 Aug 2011 19:08:23 +0200 Subject: [PATCH] Case insensitive match --- Medianno/MADocument.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Medianno/MADocument.mm b/Medianno/MADocument.mm index dd6a8dd..df35cd3 100644 --- a/Medianno/MADocument.mm +++ b/Medianno/MADocument.mm @@ -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]];