• 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: Determining unreleased objects after Quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining unreleased objects after Quit


  • Subject: Re: Determining unreleased objects after Quit
  • From: Randall Meadows <email@hidden>
  • Date: Wed, 3 Dec 2008 10:06:34 -0700

On Dec 3, 2008, at 9:38 AM, Jon C. Munson II wrote:

Namaste!

In my application, when I choose File->Quit, the application appears to
terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left unreleased.


Is there a handy way to determine what the object(s) is(are)?

When your app quits, all of its memory used it released back to the system. However, your deallocs and such will NOT be called, since that would be a waste of time since everything's going to be released back to the system anyway. It's a shortcut, and usually is in your best interest.


It can, however, bite you in certain situations, specifically non- memory resources that you need to do something with at termination. In my case, I needed to release access to a camera, so I had to do some of my cleanup work in -applicationWillTerminate:.


_______________________________________________

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: Determining unreleased objects after Quit
      • From: Joseph Kelly <email@hidden>
References: 
 >Determining unreleased objects after Quit (From: "Jon C. Munson II" <email@hidden>)

  • Prev by Date: Re: Rollover on custom Cells
  • Next by Date: Re: Controlled Font Substitution
  • Previous by thread: Re: Determining unreleased objects after Quit
  • Next by thread: Re: Determining unreleased objects after Quit
  • Index(es):
    • Date
    • Thread