• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: End Of Method Releasing Order?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: End Of Method Releasing Order?
      • From: Shawn Erickson <email@hidden>
References: 
 >End Of Method Releasing Order? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: Several Questions
  • Next by Date: Re: End Of Method Releasing Order?
  • Previous by thread: End Of Method Releasing Order?
  • Next by thread: Re: End Of Method Releasing Order?
  • Index(es):
    • Date
    • Thread