Re: Some help with NSComparisonPredicate please
Re: Some help with NSComparisonPredicate please
- Subject: Re: Some help with NSComparisonPredicate please
- From: sqwarqDev <email@hidden>
- Date: Fri, 17 Feb 2017 22:35:22 +0700
> On 17 Feb 2017, at 22:25, Keary Suska <email@hidden> wrote:
>
> The correct syntax is probably:
>
> kMDItemFSName ==[c] *%@*
>
Yeah, I’ve just been playing with that since my last post. Indeed, I discovered that the docs claim that this should be equivalent to contains:
kMDItem…. == “*paris*” - Matches attributes that contain "paris" anywhere within the value. For example, matches “paris” and “comparison”.
Although it does sort of work in 10.7.5 in that it’s accepted and returns some results, it still doesn’t return the full results that I’m expecting. A good example is giving it my own bundle identifier. mdfind on the command line returns all the results from the /Application Support folder. NSMetadataQuery doesn’t return anything at all.
I can’t figure out why that is yet, either, but I’m still experimenting.
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