• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Weird NSPredicate structure when using "first" in keypath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Weird NSPredicate structure when using "first" in keypath
      • From: Chris Hanson <email@hidden>
References: 
 >Weird NSPredicate structure when using "first" in keypath (From: Jens Alfke <email@hidden>)
 >Re: Weird NSPredicate structure when using "first" in keypath (From: Aaron Tuller <email@hidden>)

  • Prev by Date: Re: Weird NSPredicate structure when using "first" in keypath
  • Next by Date: On NSIncrementalStore UUID Uniqueness
  • Previous by thread: Re: Weird NSPredicate structure when using "first" in keypath
  • Next by thread: Re: Weird NSPredicate structure when using "first" in keypath
  • Index(es):
    • Date
    • Thread