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: Mon, 09 Jan 2017 20:29:01 -0800
> On Jan 9, 2017, at 6:38 PM, Aaron Tuller <email@hidden> wrote:
>
> Try doing
> name.#first
> as FIRST and LAST are reserved words and need escaping:
Thanks for the answer. Unfortunately this is a library that will allow developers to provide their own predicate strings, and I can imagine this causing confusion (and therefore support requests for us.)
I added a workaround to my code that will recognize the weird predicates formed by using unescaped ‘first’ and ‘last’, and handle them appropriately. I hope that’ll be robust enough!
—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