• 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: AppController dealloc is never called. Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppController dealloc is never called. Why?


  • Subject: Re: AppController dealloc is never called. Why?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 12 Jan 2010 22:11:57 -0700

On Jan 12, 2010, at 9:55 PM, Alexander Bokovikov wrote:

> On the other hand, I'm getting BAD_ACCESS exception, if I insert [self release] within applicationWillTerminate delegate method of my AppController. So, what is the correct way to free AppController?

Don't worry about it. When the task exits, the memory it used is reclaimed by the OS. If your application needs to do something else besides free memory when it terminates, then you must do that in -applicationWillTerminate: and not the -dealloc method of the application controller.

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



_______________________________________________

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

References: 
 >AppController dealloc is never called. Why? (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: AppController dealloc is never called. Why?
  • Next by Date: Re: Drawing A Mutable String
  • Previous by thread: AppController dealloc is never called. Why?
  • Next by thread: Application help window size
  • Index(es):
    • Date
    • Thread