Re: Autorelease/Retain/Release
Re: Autorelease/Retain/Release
- Subject: Re: Autorelease/Retain/Release
- From: Tim Davis <email@hidden>
- Date: Tue, 24 Jul 2007 22:18:22 -0400
Thank you to everyone that responded. All of you have provided good
insights as to how this works.
So from what I gather from you guys and reading the reference
material it appears that using [autorelease] in my indexRoot and
indexFile are correct, but I do not need my own autorelease pool, and
in the same token I could be sure that the object is released by just
going ahead and sending it a [release] and it would still be
correct. As Charlton put it, the autorelease pool is sometimes
quirky as to when it actually gets rid of objects, so I would
actually be better off releasing it myself, and keeping the
autorelease uses to things like looping through an XML doc or
creating one (in this example anyways).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden