Re: NSPredicate to exclude specific elements??
Re: NSPredicate to exclude specific elements??
- Subject: Re: NSPredicate to exclude specific elements??
- From: Jon Pugh <email@hidden>
- Date: Sun, 21 Mar 2010 09:16:40 -0700
At 7:54 AM -0700 3/21/10, Robert Monaghan wrote:
>Lets say I have a pile of NSString Paths in an array, where some of them have the word "GREEN" in the file name.
>I've been trying to build an NSPredicate which would exclude elements that contain the name..
>
>Every attempt that I have done gives me an exception.. what am I missing??
>
>eg:
>@"(SELF ALL *) NOT (SELF like[c] %@)"
>@"NOT (SELF like[c] %@)"
>@"SELF !like[c] %@"
>@"SELF NOT like[c] %@"
>
>for example give me an NSInvalidArgumentException
I have used @"%K CONTAINS[cd] %@" successfully. I would expect @"%K NOT CONTAINS[cd] %@" to also work.
Jon
_______________________________________________
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