Is the Xcode 3.1.3 predicate builder broken, or...
Is the Xcode 3.1.3 predicate builder broken, or...
- Subject: Is the Xcode 3.1.3 predicate builder broken, or...
- From: Erwin Hogeweg <email@hidden>
- Date: Tue, 01 Sep 2009 07:09:50 -0400
... am I missing something?
All -
I am trying to create a predicate using the Predicate Builder but that
doesn't quite work the way I expect it to.
It appears that the 'contains' clause in a predicate is converted into
'LIKE[c]' when the predicate is saved.
Entered: firstName contains $MATCH_STRING OR lastName contains
$MATCH_STRING
Generated: firstName LIKE[c] $MATCH_STRING OR lastName LIKE[c]
$MATCH_STRING
Now, I am not an expert on this subject by any stretch of imagination,
so I could easily miss something here, but 'contains' and 'LIKE[c]'
look different to me, and the Core Data fetch results seem to support
my suspicion that something is wrong here.
If I have a person, say "Erwin" (just to pick a name...), the fetch
results are empty until $MATCH_STRING is @"erwin", whereas I would
expect it to give me something back as well when I just enter @"E",
@"Er", etc.
Any thoughts on this?
Kind regards,
Erwin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden