Re: End Of Method Releasing Order?
Re: End Of Method Releasing Order?
- Subject: Re: End Of Method Releasing Order?
- From: WT <email@hidden>
- Date: Tue, 2 Jun 2009 03:05:12 +0200
I don't think so. Releasing objects merely decreases their retain
count. It's up to the Obj-C runtime system to figure out in what order
to actually free the memory allocated for those objects. In other
words, we are not the ones deciding how and when to deallocate memory
allocated for objects. We merely indicate to the runtime system that
we're no longer interested in a given object at a given point in the
program runtime execution flow. What happens to the object after that
is not up to us.
On Jun 2, 2009, at 2:46 AM, Chunk 1978 wrote:
does it matter which order objects are released at the end of a
method? example:
...
at the end i'm finished with archiver, data and fourLines, but does it
matter in this case which one i release first?
_______________________________________________
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