Hi,
I currently have the following piece of code
NSPredicate *pred = [NSPredicate predicateWithFormat:@"SELF contains '-'"];
[resultsArray filterUsingPredicate:pred];
This returns an array with the elements which contain '-'. I want to do the inverse of this so all elements not containing '-' are returned.
Is this possible?
I've tried using the NOT keyword in various locations but to no avail. (I didn't think it would work anyway, based on the apple documentation).
To further this, is it possible to provide the predicate with an array of chars that I don't want to be in the elements of the array. (The array is a load of strings).
Thanks,
Jon