• 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: NSPredicate containing contains
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicate containing contains


  • Subject: Re: NSPredicate containing contains
  • From: Keary Suska <email@hidden>
  • Date: Wed, 28 May 2008 14:24:17 -0600
  • Thread-topic: NSPredicate containing contains

5/28/08 1:52 PM, also sprach email@hidden:

> 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@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: 
 >Re: NSPredicate containing contains (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: [ANN] CocoaHeads, Stockholm (Sweden) - First meeting ever, June 2
  • Next by Date: Re: NSFileManager's errors in 10.5, where are they documented?
  • Previous by thread: Re: NSPredicate containing contains
  • Next by thread: Core animation bug?
  • Index(es):
    • Date
    • Thread