• 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: Some help with NSComparisonPredicate please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some help with NSComparisonPredicate please


  • Subject: Re: Some help with NSComparisonPredicate please
  • From: sqwarqDev <email@hidden>
  • Date: Fri, 17 Feb 2017 18:16:34 +0700

Suggestions from Shane and Steve:

> Use LIKE instead of CONTAINS?

Yeah, that was my first thought. Alas, it doesn’t return the correct results.

> Try quoting the right side? "kMDItemFSName contains[cd] '%@‘"

Doesn’t return the correct results in 10.11. There aren’t any spaces in my actual target strings anyway (I know there was in the pseudo-code I gave, so it was a good suggestion).

> Or use the uppercase CONTAINS?

That’s what it was originally, and then I tried changing it to lowercase after the first crash.

Both ways cause the crash and the invalid NSPredicateComparison message in 10.7.5.

There’s no question the format is valid in 10.9 and later. I just can’t understand why Lion is objecting to it. I don’t really want to drop 10.7 users, but unless I can find a solution that’s going to be my only recourse.

Anyone else got any thoughts?



Best


Phil
_______________________________________________

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: Some help with NSComparisonPredicate please
      • From: sqwarqDev <email@hidden>
References: 
 >Some help with NSComparisonPredicate please (From: sqwarqDev <email@hidden>)
 >Re: Some help with NSComparisonPredicate please (From: sqwarqDev <email@hidden>)
 >Re: Some help with NSComparisonPredicate please (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Some help with NSComparisonPredicate please
  • Next by Date: Re: Some help with NSComparisonPredicate please
  • Previous by thread: Re: Some help with NSComparisonPredicate please
  • Next by thread: Re: Some help with NSComparisonPredicate please
  • Index(es):
    • Date
    • Thread