Just wondering if this is even possible, maybe I could retrieve an NSSet
of objects that are currently stored in a given NSAutoreleasePool
instance?
I have looked through Apple's NSAutoreleasePool
reference and have not found much pertaining to this question.
If the purpose is just for debugging, you could use the function _CFAutoreleasePoolPrintPools()
to print the content of the pool, as documented in TN2124. It is available since Mac OS X 10.6 and iOS maybe since 3.x.
Alternatively, the class method [NSAutoreleasePool showPools]
performs the same action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With