Objects are automatically added to the auto release pool that is on the top of the stack, like objects that are returned from NSStrings and NSNumber class methods, -numberWithInt and -stringWithString.
I have a situation where I want some objects that are created in a nested pool to be in added only to the outer pool.
I don't want them added to the inner pool, even though I need to create them within in this pool. How do I create objects, but at the same time add them to a pool that is not currently at the top of the stack?
I have a situation where I want some objects that are created in a nested pool to be in added only to the outer pool.
I don't want them added to the inner pool, even though I need to create them within in this pool. How do I create objects, but at the same time add them to a pool that is not currently at the top of the stack?