• 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: Steve Mills <email@hidden>
  • Date: Thu, 16 Feb 2017 18:12:04 -0600

On Feb 16, 2017, at 17:54, sqwarqDev <email@hidden> wrote:
>
> Still looking for help with this, if anyone’s got any idea?
>
>> On 15 Feb 2017, at 22:50, sqwarqDev <email@hidden> wrote:
>>
>> Building with Xcode 7.3.1, macOS 10.11.6
>>
>> I’m using an NSPredicate with the form:
>>
>> NSString *targetString = @“some string or other”;
>> NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"kMDItemFSName contains[cd] %@“, targetString]];

Try quoting the right side? "kMDItemFSName contains[cd] '%@'"
Or use the uppercase CONTAINS?

Steve via iPad


_______________________________________________

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


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