5/28/08 1:52 PM, also sprach [EMAIL PROTECTED]:

> NSString *predicateFormat = @"%@ contains %K";
> NSPredicate *predicate = [NSPredicate predicateWithFormat:
> predicateFormat, searchString, kMDItemFSName];

See my follow-up--I had the arguments backwards. I am surprised that the
above works, but I can see that it could possibly.
 
> NSString *predicateFormat = @"%@ contains kMDItemFSName";
> NSPredicate *predicate = [ NSPredicate predicateWithFormat:
> predicateFormat, searchString ];

This shouldn't work at all--it may not generate an error, but it shouldn't
find anything, AFAICT.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [EMAIL PROTECTED]

Reply via email to