I have an array of objects
I want to copy the array and all contents of it
"Object" implements NSCopying
I thought that doing
NSArray *copiedArray = [array copy];
would trigger copyWithZone in the objects contained inside of it.
Unfortunally not...
How can this be done?
copywould callcopyWithZone:on all objects in the container, unfortunately it doesn't. It ends withHow can this be done?. Granted, it doesn't mention deep copies explicitly, but that's what he is asking...