Check duplicate objects in NSMutableArray?
- by fuzzygoat
I am adding objects (NSNumbers in this case) to an NSMutableArray and I wanted to check what the best way is to check for duplicates in the array before adding. (i.e.)
Number to add
if (NSMutableArray does not contain Number) {
add Number
}
gary