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.