Re: Some help with NSComparisonPredicate please
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