Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Is the Xcode 3.1.3 predicate builder broken, or...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is the Xcode 3.1.3 predicate builder broken, or...



... 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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.