I would like to delete a specific element from a NSMutableArray, and I see that NSArray has indexOfObject method which is quite useful for this, but NSMutableArray does not.
My current approach is to use removeObjectsInArray method from NSMutableArray passing as an argument an array containing my object/s.
Is there a better way to do that?, is there any reason why NSMutableArray does not have this method?.
It does too have
-indexOfObject:.NSMutableArrayis a subclass ofNSArray, and therefore inherits all its methods.