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

Re: dealloc never called


  • Subject: Re: dealloc never called
  • From: Charlton Wilbur <email@hidden>
  • Date: Sun, 6 Feb 2005 22:13:07 -0500


On Feb 6, 2005, at 7:59 PM, Philipp Ringli wrote:

I have this code in my Controller.m and it never executes upon quitting the app:

----------------------------------------
- (void)dealloc
{
[...]
}
-----------------------------------------

Probably again something basic, I am missing?

You've already got a solution, but I figured you should have an explanation too. As an efficiency measure, there's no guarantee that -dealloc will be called when an application is terminating. The theory is that all the application's memory is going to be returned to the OS anyway, so there's no point in tidying it up; and any actions that should be triggered when the application terminates can be invoked from the application delegate's -applicationWillTerminate: method.


Charlton


-- Charlton Wilbur email@hidden email@hidden

_______________________________________________
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


References: 
 >dealloc never called (From: Philipp Ringli <email@hidden>)

  • Prev by Date: Re: Memory Managment (copys??)
  • Next by Date: Re: NS(Array)Controller and To-Many Relationships (how to add objectsfrom one to another)
  • Previous by thread: Re: dealloc never called
  • Next by thread: Switch between multiple views
  • Index(es):
    • Date
    • Thread