Hi I have populated core data in my App with 10 entries. When I setup a fetch request with a predicate this way:
--- NSString *key = @"tag"; NSPredicate *pred = [NSPredicate predicateWithFormat:@"%K like %@",key,@"personality"]; [req setPredicate:pred]; NSArray *results = [self.managedObjectContext executeFetchRequest:req error:&error]; --- The array results has only 1 element. But all of my records have tag set to "personality" (without the quotes). In fact when I set the predicate to nil, fetch all records and print the tag I can see that all the tags are set to "personality". Am I doing something wrong? How do I get all records with tag set to "personality" Thanks Hrishi _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com