What is the difference between copy and mutableCopy when used on either an NSArray or an NSMutableArray?
copy
mutableCopy
NSArray
NSMutableArray
This is
You're calling addObject and removeObjectAtIndex on the original array, rather than the new copy of it you've made. Calling copy vs mutableCopy only effects the mutability of the new copy of the object, not the original object.