views:

49

answers:

1

Is there a way to know the objects that are marked for releasing inside an NSAutoreleasePool.

+2  A: 

No. Not to my knowledge, why would you ever want to know this?

Joshua Weinberg
i want to check if a particular object is marked for autorelease?
Right, what is the point of this. It screams of bad design.
Joshua Weinberg
i am using code written by someone else and it seems to leak memory returned back from a function, i dont think they have autoreleased the object before returning it.
Use the Leaks Instrument to check what it thinks is going on. Don't take wild guesses about this stuff. Using that you can easily see who "owns" the object.
Joshua Weinberg