I have a class, which has an NSMutableArray as a property. I then made an NSMutableArray of objects of that class, which I need to compare to the text on a button. The class has a method called contains(NSString *r) which checks NSStrings against objects in the array.