• 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: Objective C++ memory management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective C++ memory management


  • Subject: Re: Objective C++ memory management
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 1 Nov 2005 11:51:32 -0700


On Nov 1, 2005, at 11:00 AM, Garvin Haslett wrote:

You are correct, which leaves me mystified. I thought that Cmd-Q or clicking the red button on the window would automatically force a call to dealloc. Clearly this is not the case. Can anyone clear up my confusion.

Top level objects in the main nib file aren't deallocated when the program quits. You generally don't need to worry about deallocating objects when the application quits, because the memory is going to be freed anyway. If you need to do something before the application quits, then you should use the NSApplication delegate method - applicationWillTerminate:.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Objective C++ memory management
      • From: Garvin Haslett <email@hidden>
References: 
 >Re: Objective C++ memory management (From: Garvin Haslett <email@hidden>)

  • Prev by Date: Re: Implementing a queue between an application and a thread. Deeply confused...
  • Next by Date: Re: UpTime broken?
  • Previous by thread: Re: Objective C++ memory management
  • Next by thread: Re: Objective C++ memory management
  • Index(es):
    • Date
    • Thread