If its outer and the code is done right, it should be disposed of when the code within it is no longer needed

On Apr 8, 2009, at 3:46 PM, glenn andreas wrote:


On Apr 8, 2009, at 9:34 AM, Daniel Luis dos Santos wrote:

Since I am using an auto release pool that is created before anything else, those initializers create auto released objects that will only be released at the end of the code execution. They will be valid until the program terminates


That's not what the memory management rules tell you to do.

How do you know that there isn't an auto-release pool outside of that which gets cleaned up (and nested auto release pools are automatically cleaned up when the outer one is)?


Glenn Andreas                      gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to