Re: Weird NSPredicate structure when using "first" in keypath
Re: Weird NSPredicate structure when using "first" in keypath
- Subject: Re: Weird NSPredicate structure when using "first" in keypath
- From: Jens Alfke <email@hidden>
- Date: Wed, 18 Jan 2017 10:39:25 -0800
> On Jan 17, 2017, at 7:18 PM, Chris Hanson <email@hidden> wrote:
>
> Then if your users want to use a predicate string (rather than an NSPredicateEditor or other form of direct instantiation) they still trivially can, but it's on them to get the syntax correct rather than on you to try to figure out their intent.
Because then if they don’t get the syntax correct, they’ll ask for help in our support forums, and it’s on us to answer the same question over and over again.
Or they’ll just decide our library doesn’t work and give up on it.
(I do see this as a design defect in the NSPredicate parser. The fact that the identifiers ‘first’ and ‘last’ have special meaning as array subscripts should not prevent them from being used as ordinary property names in key-paths.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden