In short, you are not doing this.
If you want to put an object in an array and then create a new object, do just that; addObject: to the array and alloc/init new.
If you ask how you copy an object into, say, a random malloc() block somewhere - say, in the middle of an array - then this is a completely different problem. This can be technically done, but basically no one does it so that the framework and runtime are not designed for this.
Without knowing more about your specific needs, it is impossible to dwell in more detail.
bbum
source share