is there a class available to check if an array doesn't contain an object? I want to do something like
if [(myarray doesntContain @"object")]
is this possible
For NSArray
use -containsObject:
:
if (![myarray containsObject:someObject]) {
// ...
}