views:

101

answers:

1

I have a NSMutableArray like this:

NSMutableArray *array =...; (array contain my custom object)
NSMutableArray *toRemove = [array getObjectsToRemove];

But when I try to call removeObjectsInArray ( [array removeObjectsInArray:toRemove]; ) it breaks my app! Can anybody tell me how to solve my problem :(

+2  A: 

I expect the error you are getting is "[NSMutableArray getObjectsToRemove] unrecognized selector sent to.."

NSMutableArray does not have such a method.

That's as far as I can answer without a bit more information, like the actual error message and the code for getObjectsToRemove (wherever it is defined).

JeremyP
that's really possible
vodkhang