• 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: How to delay application quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delay application quit?


  • Subject: Re: How to delay application quit?
  • From: j o a r <email@hidden>
  • Date: Tue, 25 Mar 2008 15:26:15 -0700


On Mar 25, 2008, at 3:19 PM, James Hober wrote:

On the other hand, the documentation for dealloc says:

"Note that when an application terminates, objects may not be sent a dealloc message since the process’s memory is automatically cleared on exit—it is more efficient simply to allow the operating system to clean up resources than to invoke all the memory management methods."

Since it says "may," theoretically it could be considered an implementation detail that dealloc is not called during termination and Apple could change things in a future release. Admittedly, this is not very likely and admittedly worrying about code that almost certainly will never execute is probably not the best use of time. And yet it is very common to have a number of singleton objects of this kind in Cocoa apps. So nearly all of us are "solving" this one way or another.


That's a valid argument, but I feel pretty confident that Apple wouldn't be able to make such a chance for existing binaries without creating havoc in the installed application base.

If they do change this, I would expect them to communicate it first, and then only actually update the behaviour for apps compiled on a newer version of the OS.

j o a r


_______________________________________________

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: 
 >Re: How to delay application quit? (From: James Hober <email@hidden>)
 >Re: How to delay application quit? (From: j o a r <email@hidden>)
 >Re: How to delay application quit? (From: James Hober <email@hidden>)

  • Prev by Date: Re: How to delay application quit?
  • Next by Date: Re: Garbage collection - was Beginner with Cocoa
  • Previous by thread: Re: How to delay application quit?
  • Next by thread: Getting bounds of an NSTabViewItem tab
  • Index(es):
    • Date
    • Thread