• 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: { Semi-Newbie } Inverse of +initialize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: { Semi-Newbie } Inverse of +initialize?


  • Subject: Re: { Semi-Newbie } Inverse of +initialize?
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 11 Oct 2002 15:47:35 -0700

On Friday, October 11, 2002, at 03:36 PM, David Remahl wrote:

All this would do is make your app take longer to terminate. There's
no point to freeing memory when the app is quitting.

IMHO, there is some idea in trying to make sure that all objects are
dealloced as they should when the application is terminating. Objects may do
other stuff than simply freeing memory when they are dealloced, for example
close down socket connections or remove temporary files. If they are
forcibly destroyed, then this junk will be left behind.

Cleaning up temporary files and the like should be done in the app delegate's -applicationWillTerminate: method.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • contextual menus in finder / cocoa & carbon integration
      • From: Keith Ray <email@hidden>
    • Re: { Semi-Newbie } Inverse of +initialize?
      • From: David Remahl <email@hidden>
References: 
 >Re: { Semi-Newbie } Inverse of +initialize? (From: David Remahl <email@hidden>)

  • Prev by Date: Re: NSThread vs NSTimer
  • Next by Date: Re: { Semi-Newbie } Inverse of +initialize?
  • Previous by thread: Re: { Semi-Newbie } Inverse of +initialize?
  • Next by thread: Re: { Semi-Newbie } Inverse of +initialize?
  • Index(es):
    • Date
    • Thread