Re: Objective C++ memory management
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