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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to